Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.9.1
-
Fix Version/s: 5.9.2
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Environment:Windows 10 + MSVC 2015 + Qt 5.9.1
Description
Javascript code using with statement like this
var myItem = {'a': 3, 'b': 4} with (myItem) { console.log("a = " + a) }
When using quick compiler it produces an error
.qtquickcompiler\main_qml.cpp(67): error C2664: 'void QV4::Runtime::method_pushWithScope(const QV4::Value &,QV4::NoThrowEngine *)': cannot convert argument 2 from 'QV4::ExecutionEngine *' to 'QV4::NoThrowEngine *' .qtquickcompiler\main_qml.cpp(67): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast