forked from qt-creator/qt-creator
The warning about strange interactions between QtQuick1 and QtQuick2 doesn't exist anymore, and I don't see why it would show up in that case anyway. QmlJS::StaticAnalysis::Type used to have a member 324, and the comment references that. Change-Id: I4f0a256588919a146068b8771954bcabf0468dbc Reviewed-by: Marco Benelli <marco.benelli@qt.io>
45 lines
730 B
QML
45 lines
730 B
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
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
|
|
}
|
|
}
|
|
}
|