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

Allow typed functions to work with default parameters

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: