Details
-
Technical task
-
Resolution: Duplicate
-
P2: Important
Description
Compiler complains about rest parameters but it does not seem to understand typescript kind of typing for it either.
This produces
function d(...args) { }
Warning: main.qml:15:5: Could not compile function d: Functions without type annotations won't be compiled
But this also gives parse error:
function d(...args:string[]) { }
Attachments
Issue Links
- duplicates
-
QTBUG-104751 Can't have type annotations and default arguments
- Open