Skip to content
Snippets Groups Projects
Commit 2440bfc5 authored by Christian Kamm's avatar Christian Kamm
Browse files

Don't try to look up members of attached properties.

parent e8565890
No related branches found
No related tags found
No related merge requests found
......@@ -190,8 +190,11 @@ void Check::checkScopeObjectMember(const UiQualifiedId *id)
return;
// attached properties
if (! propertyName.isEmpty() && propertyName[0].isUpper())
bool isAttachedProperty = false;
if (! propertyName.isEmpty() && propertyName[0].isUpper()) {
isAttachedProperty = true;
scopeObject = _context.typeEnvironment(_doc.data());
}
if (! scopeObject)
return;
......@@ -206,6 +209,10 @@ void Check::checkScopeObjectMember(const UiQualifiedId *id)
return;
}
// can't look up members for attached properties
if (isAttachedProperty)
return;
// member lookup
const UiQualifiedId *idPart = id;
while (idPart->next) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment