Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.3, 5.13.0
-
OS: Ubuntu 18.04
Compiler: g++ 7.4.0
-
-
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 |