Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
59d6cf324 (dev), 030f68acb (6.5)
Description
Using a constant from the JS standard api, like so:
Text {
text: Number.EPSILON
}
works perfectly fine, but there is an incorrect warning and error from the qml linter / compiler:
Warning: main.qml:10:22: Type is a method. You cannot access "EPSILON" from here. text: Number.EPSILON ^^^^^^^ Error: main.qml:10:22: Could not compile binding for text: Cannot generate efficient code for lookup in QJSValue text: Number.EPSILON ^^^^^^^
Attachments
For Gerrit Dashboard: QTBUG-109204 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
451996,3 | qmllint: Do not warn when accessing properties of global constructors | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
456468,4 | qmllint: Do not warn when accessing properties of global constructors | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
456469,1 | qmllint: Do not warn when accessing properties of global constructors | 6.4 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |