Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22907

Incorrect warnings for ES6 let statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.10.0, Qt Creator 6.0.2, Qt Creator 9.0.0-beta2
    • Quick / QML Support
    • None
    • Android, Windows

    Description

      Getting incorrect warnings using ES6 let/const statements under different blocks with Qt Creator 4.10:

      for (let i = 0; i < 10; i++) {
          console.log(i); // "i" name is used before its declaration (M105)
      }
      for (let i = 0; i < 10; i++) { // "i" is declared more than once (M107)
          console.log(i);
      }
      

      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
            oleg_derevenetz Oleg Derevenetz
            Votes:
            15 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes