Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5
-
None
Description
This works:
function foo(num = 5) : int { return num; }
This too:
function foo(num : int) : int { return num; }
But would it be possible to do this:
function foo(num : int = 5) : int { return num; }
and have qmlsc do the proper compilation?
Attachments
Issue Links
- duplicates
-
QTBUG-104751 Can't have type annotations and default arguments
- Open