Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
Description
Code
import QtQuick Window { width: 540 height: 750 visible: true function foo(): string { let jsObj = {"key": "value"} return jsObj.key } }
Compiler output
Warning: main.qml:9:9: Could not compile function foo: Cannot generate efficient code for DefineObjectLiteral [compiler] let jsObj = {"key": "value"} ^^^