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

Details

    Description

      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[]) {
          }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: