- 
     Technical task Technical task
- 
    Resolution: Done
- 
    P2: Important 
- 
        259aec7cb4 (qt/qtdeclarative/dev) 259aec7cb4 (qt/tqtc-qtdeclarative/dev) 259aec7cb4 (qt/qtdeclarative/wip/material3)
For code bellow qmllint (0dc4fd240a2897c5c443a0ef6d84c416843e4938) --compiler generate warning:
Warning: main.qml:14:20: Could not compile binding for onClicked: Instruction "generate_InitializeBlockDeadTemporalZone" not implemented
        onClicked: {
It would be nice if qmllint can "compile" such simple assignment,
and gives warning about not existing "open2"  method.
pragma ComponentBehavior: Bound import QtQuick.Controls import QtQuick.Window import QtQuick Window { Button { anchors.centerIn: parent text: "open popup" onClicked: { loader.sourceComponent = loadPageComponent; let dlg = loader.item as Popup; dlg.open2(); } } Loader { id: loader } Component { id: loadPageComponent Popup { id: myDlg Text { id: cap anchors.fill: parent text: qsTr("Some message") } onClosed: { console.log("onClosed in component"); loader.sourceComponent = undefined; } } } }
- relates to
- 
                    QTBUG-77428 Block-scoped variable declaration is hoisted in QML -         
- Closed
 
-         
- resulted in
- 
                    QTBUG-108362 DTZ checks are broken in QML -         
- Reported
 
-         
| For Gerrit Dashboard: QTBUG-104192 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 442573,4 | QtQml: Remove BlockDeadTemporaryZone instruction | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 | 
| 442690,3 | QmlCompiler: Ignore InitializeDeadTemporalZone instruction | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |