Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.7
-
None
-
2b336217b (dev)
Description
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 ...
Attachments
Issue Links
- depends on
-
QTBUG-122380 QML cannot handle "as string"
- Closed