-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.7
-
None
-
2b336217b (dev)
It should be possible to do this:
property int i: (Anything as int) ?? 1
In both cases an int is returned and the optional can be dropped.
This does currently not work because of
(strict mode) Cannot assign potential undefined to int ...
- blocks
-
QTBUG-105539 [QML] Binding with dynamic type not compilable
-
- Reported
-
- depends on
-
QTBUG-122380 QML cannot handle "as string"
-
- Closed
-
For Gerrit Dashboard: QTBUG-119437 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
521128,4 | Compiler: Add tests for the nullish coalescing operator ?? | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |