Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Fixed
-
Affects Version/s: 6.0
-
Fix Version/s: 6.1
-
Component/s: QML: Tooling
-
Labels:
-
Commits:08c8e8ac3ba8eb23ae5c158990f5d029ac9988ed
Description
I tried current dev.
Foo.qml:
import QtQml 2.15 QtObject { property int x: 5 }
and Main.qml in the same directory:
import QtQuick 2.15 Rectangle { Foo { x: "aaa" y: 5 } }
I expected error about not existing property "y" and wrong type of initializer of "x",
but got no output and 0 exit code.
While for example qmlscene report errors:
qmlscene Main.qml file:///var/tmp/test_qml_simple/Main.qml:6 Cannot assign to non-existent property "y"
and if I removed "y" it will report about wrong type of initializer of "x".
I tried "qmllint Main.qml" and also "qmllint Foo.qml Main.qml".
I also I tried to put Foo.qml into module, and import explicitly.
But situation was the same not error about not existing property and "int" vs "string" for "x" init.