Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76025 Specify the QML language and write a QML-to-C++ compiler
  3. QTBUG-101007

It should be possible to type javascript rest parameters

XMLWordPrintable

      Compiler complains about rest parameters but it does not seem to understand typescript kind of typing for it either.

      This produces

          function d(...args) {
          }
      
      Warning: main.qml:15:5: Could not compile function d: Functions without type annotations won't be compiled
      

      But this also gives parse error:

          function d(...args:string[]) {
          }
      

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

            qtqmlteam Qt Qml Team User
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes