Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77954

[REG 5.11.3->5.12.0] QML parsing error

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 45b1a3f97953fac65c6aef8e46abad865a0d0bc3 (qt/qtdeclarative/5.14) 2f16944d45e1ade14ad086a547a9673b1ceba7bc (qt/qtdeclarative/5.12)

    Description

      QML parsing error for a property with JS object literal ending with semicolon.

       

      // Sample.qml
      import QtQml 2.0
      
      QtObject {
          property var field: { "key": "value"};
      }
      

      The error "Unexpected token `;'" in case of runtime and compile-time generation (add in .pro file CONFIG += qtquickcompiler)  "Error compiling qml file: [...]: error: Unexpected token `;'" .

      Link to the problematic commit: https://codereview.qt-project.org/c/qt/qtdeclarative/+/222016

      Qt version Result
      5.9.8 good
      5.11.3 good
      5.12.0 bad
      5.12.3 bad
      5.13.0 bad

      Attachments

        Activity

          People

            fabiankosmale Fabian Kosmale
            alex0x00 Alex Kuznecov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: