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

Conflicting error message on compiling javascript functions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.0 FF, 6.9
    • 6.5.0
    • QML: Compiler
    • None
    • Linux/X11
    • b77d2f7f0 (dev)

      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

            ulherman Ulf Hermann
            ihaber Ian Haber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes