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

Improve support for "const" var

    XMLWordPrintable

Details

    Description

      qqmljs.g seems to respect T_CONST, and the IR is made aware of the information, but it seems to end there. We should probably propagate the information further from there, and actually support constant properties.

      It also seems strange to me that "const" is only respected in QML mode. With the advent of ES6, perhaps we should allow it in JS syntax, too?

      On the parsing side, it is also supposed to be a SyntaxError if a const declaration lacks an initializer, but I think that's an easier fix.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes