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

qmllint: unterminated-case

XMLWordPrintable

    • All
    • a42f047a4 (dev), f51de4dd9 (6.10)

      Qqmllint throws a warning "Unterminated non-empty case block" in this case for "case 1":

      switch (example)
          ...
          case 1:
              {
                  let testing = 0
                  ...
                  switch (testing) {
                     case 2:
                         return "done";
                     default:
                         return "done";
                  }
              }
          ....
      

      This looks wrong because of the default "case1" it is always terminated.

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

            sami.shalayel Sami Shalayel
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes