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

Built in QML/JS Formatting breaks JS classes

    XMLWordPrintable

Details

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

    Description

      As title suggests.

      Before

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

      After 

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

      Attachments

        1. FormatTest.zip
          2 kB
          Mairtin Steinkamp

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes