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

Can't have type annotations and default arguments

XMLWordPrintable

    • All

      This basic function with a default argument works both interpreted and compiled:

      function f(a = true) { } 

      Adding a type annotation like so

      function f(a : bool = true) { } 

      breaks the interpreted run:

      qml: Type annotations are not supported (yet). 

      But worse yet, qmlsc silently crashes on this line.

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

            ulherman Ulf Hermann
            rgriebl Robert Griebl
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: