Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • QML: Tooling
    • None

    Description

      In QML, it is not allowed to write to global variables. In the attached example, the engine will error out with 'Error: Invalid write to global property "unexistingVar"', but qmllint does not emit any warning.untitled24.zip

       

          function test1() {
              // qmlls via qmllint should warn about writing to global variables (the let/const/var is missing here!)
              unexistingVar = 424242;
          } 

       

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes