-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.4.0 Beta1
This basic function with a default argument works both interpreted and compiled:
function f(a = true) { }
Adding a type annotation like so
function f(a : bool = true) { }
breaks the interpreted run:
qml: Type annotations are not supported (yet).
But worse yet, qmlsc silently crashes on this line.
- is duplicated by
-
QTBUG-105547 [QML] Default parameters with type annotations not supported
-
- Open
-
| For Gerrit Dashboard: QTBUG-104751 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 631779,2 | qv4codegen: Improve warning about type annotations on default parameters | dev | qt/qtdeclarative | Status: NEW | +2 | 0 |