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

Conflicting error message on compiling javascript functions

    XMLWordPrintable

Details

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

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes