Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
-
-
b77d2f7f0 (dev)
Description
qml compiler gives conflicting errors with regards to compiling javascript functions. See these three cases:
property var loadCustom : function(data)
// gives warning: Could not compile binding for loadCustom: Functions without type annotations won't be compiled [compiler]
property var loadCustom : function(data:var)
{ }
//gives error: Type annotations are not permitted in function parameters in JavaScript functions
property var loadCustom : function(data):void
//gives error: Type annotations are not permitted for the return value of JavaScript functions
Attachments
For Gerrit Dashboard: QTBUG-112638 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
581685,2 | QML: Allow type annotations for all functions in QML mode | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |