forked from qt-creator/qt-creator
Change-Id: I424caba6b79423d1bf680fab3bd0ec089c564ace Reviewed-by: Kai Koehne <kai.koehne@digia.com>
45 lines
741 B
QML
45 lines
741 B
QML
import QtQuick 2.0
|
|
|
|
Item { // 324 1 4
|
|
x: {
|
|
switch (a) {
|
|
case 1:
|
|
case 2:
|
|
x = 1
|
|
// fallthrough
|
|
case 3:
|
|
break
|
|
case 4:
|
|
continue
|
|
case 5:
|
|
case 6:
|
|
default:
|
|
case 8:
|
|
return
|
|
case 10:
|
|
x = 1
|
|
break
|
|
case 9:
|
|
}
|
|
switch (a) {
|
|
case 1:
|
|
case 2: // 20 9 12
|
|
x = 1
|
|
case 3:
|
|
break
|
|
case 4: // 20 9 12
|
|
function a() {
|
|
|
|
}
|
|
case 5:
|
|
case 6:
|
|
default:
|
|
case 8: // 20 9 12
|
|
x = 1
|
|
case 9:
|
|
case 11: // no warning
|
|
x = 1
|
|
}
|
|
}
|
|
}
|