forked from qt-creator/qt-creator
QmlJS: Don't detect type from expression if the type is given explicitly.
To make sure property color foo: "white" is of type color, not string. Done-with: ckamm
This commit is contained in:
@@ -3063,7 +3063,8 @@ bool ASTPropertyReference::getSourceLocation(QString *fileName, int *line, int *
|
||||
|
||||
const Value *ASTPropertyReference::value(Context *context) const
|
||||
{
|
||||
if (_ast->expression) {
|
||||
if (_ast->expression
|
||||
&& (!_ast->memberType || _ast->memberType->asString() == QLatin1String("variant"))) {
|
||||
Evaluate check(context);
|
||||
return check(_ast->expression);
|
||||
}
|
||||
|
Reference in New Issue
Block a user