Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.3.0 Beta2
-
4c716dd19c (qt/qtdeclarative/dev) 4c716dd19c (qt/tqtc-qtdeclarative/dev) 9b890ab5d0 (qt/qtdeclarative/6.3) e1615344e4 (qt/tqtc-qmlcompilerplus/6.2)
Description
Using constructs like
QtObject {
id: test
property int x: Infinity
}
render into
/home/cajus/tmp/build-infinity-Desktop_Qt_6_3_0_GCC_64bit-Debug/.rcc/qmlcache/appinfinity_main_qml.cpp: In lambda function: /home/cajus/tmp/build-infinity-Desktop_Qt_6_3_0_GCC_64bit-Debug/.rcc/qmlcache/appinfinity_main_qml.cpp:180:6: error: ‘inf’ was not declared in this scope; did you mean ‘ynf’? 180 | r2 = inf; | ^~~ | ynf
.
Trying
QtObject { id: test property int x: Number.POSITIVE_INFINITY }
runs into
Warning: main.qml:11:32: Could not compile binding for x: Cannot generate efficient code for lookup in QJSValue property int x: Number.POSITIVE_INFINITY ^^^^^^^^^^^^^^^^^
, but seems to work.