diff options
Diffstat (limited to 'src/qmlcompiler/qqmljsimportvisitor.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index f8706f5c12..718eda9575 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -767,13 +767,10 @@ void QQmlJSImportVisitor::processPropertyBindingObjects() } if (!objectBinding.onToken && !property.type()->canAssign(childScope)) { - // the type is incompatible - m_logger->log(QStringLiteral("Property \"%1\" of type \"%2\" is assigned an " - "incompatible type \"%3\"") - .arg(propertyName) - .arg(property.typeName()) - .arg(getScopeName(childScope, QQmlSA::ScopeType::QMLScope)), - qmlIncompatibleType, objectBinding.location); + m_logger->log(QStringLiteral("Cannot assign object of type %1 to %2") + .arg(getScopeName(childScope, QQmlSA::ScopeType::QMLScope)) + .arg(property.typeName()), + qmlIncompatibleType, childScope->sourceLocation()); continue; } |
