Details

    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"}
              ^^^
      

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: