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

Allow typed functions to work with default parameters

XMLWordPrintable

      This works:

      function foo(num = 5) : int {
              return num;
       }

      This too:

      function foo(num : int) : int {
              return num;
      }

      But would it be possible to do this:

      function foo(num : int = 5) : int {
              return num;
      }

      and have qmlsc do the proper compilation?

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

            qtqmlteam Qt Qml Team User
            pijaouen Pierre Jaouen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes