-
Technical task
-
Resolution: Unresolved
-
P2: Important
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"}
^^^
| For Gerrit Dashboard: QTBUG-112485 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 488380,15 | QmlCompiler: Allow creation of structured value types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |