Commit 73834060 authored by Marco Benelli's avatar Marco Benelli Committed by Thomas Hartmann

QmlJs: fix false positives for properties

Resolve references while looking up for object members.

Task-number: QTCREATORBUG-18362
Change-Id: I9d2b2457fb3488c723a41e4e8ba1fc0ea9fe800f
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <>
parent e45c6ebe
......@@ -1781,6 +1781,9 @@ const Value *Check::checkScopeObjectMember(const UiQualifiedId *id)
addMessage(ErrInvalidMember, idPart->identifierToken, propertyName, objectValue->className());
return 0;
// resolve references
if (const Reference *ref = value->asReference())
value = _context->lookupReference(ref);
return value;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment