Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112638

Conflicting error message on compiling javascript functions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.6
    • 6.5.0
    • QML: Compiler
    • None
    • Linux/X11

      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

        For Gerrit Dashboard: QTBUG-112638
        # Subject Branch Project Status CR V

            qtqmlteam Qt Qml Team User
            ihaber Ian Haber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes