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

Built in QML/JS Formatting breaks JS classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 14.0.1
    • Quick / QML Support
    • None

      As title suggests.

      Before

      class Foo {
        constructor(myVar) {
           //code
        }
        myFunc1() {
           return true;
        }
      }

      After 

      constructorfunction (myVar) {//code   △ Expected token `,'
      }myFunc1function () {
        return true
      } 

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

            qtqmlteam Qt Qml Team User
            mairtin.s Mairtin Steinkamp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes