When an alias declaration is missing a location, report the error with the
location of the alias declaration, not the object declaration. This matches
the code patch in the new compiler, which also reports it accurately.
Change-Id: I709dbddb3273f4e05cc4d63079da52d7224466bd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
continue;
if (!p->defaultValue)
- COMPILE_EXCEPTION(obj, tr("No property alias location"));
+ COMPILE_EXCEPTION(p, tr("No property alias location"));
if (!p->defaultValue->values.isOne() ||
p->defaultValue->values.first()->object ||
-3:1:No property alias location
+4:5:No property alias location