import Qt.test 1.0

MyQmlObject {
    value: {
        var value = 0
        switch (stringProperty) {
        case "A":
            value = value + 1
            value = value + 1
            /* should fall through */
        case "S":
            value = value + 1
            value = value + 1
            value = value + 1
            break;
        default:
            value = value + 1
        case "D": { // with curly braces
            value = value + 1
            value = value + 1
            value = value + 1
            break;
        }
        case "F": {
            value = value + 1
            value = value + 1
            value = value + 1
        }
        /* should fall through */
        }
    }
}

