mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
53 lines
926 B
Kotlin
Vendored
53 lines
926 B
Kotlin
Vendored
fun test1() {
|
|
test1@ for(i in 1..2) {
|
|
continue<!LABEL_NAME_CLASH!>@test1<!>
|
|
}
|
|
}
|
|
|
|
fun test2() {
|
|
test2@ while (true) {
|
|
break<!LABEL_NAME_CLASH!>@test2<!>
|
|
}
|
|
}
|
|
|
|
class Test3 {
|
|
fun Test3() {
|
|
Test3@ while (true) {
|
|
break<!LABEL_NAME_CLASH!>@Test3<!>
|
|
}
|
|
}
|
|
}
|
|
|
|
fun test4() {
|
|
<!NOT_A_LOOP_LABEL!>break@test4<!>
|
|
}
|
|
|
|
class Test5 {
|
|
fun Test5<!SYNTAX!><!> {
|
|
return@Test5
|
|
}
|
|
}
|
|
|
|
class Test6 {
|
|
fun Test6() {
|
|
Test6@ while (true) {
|
|
break<!LABEL_NAME_CLASH!>@Test6<!>
|
|
}
|
|
|
|
Test6@ while (true) {
|
|
break<!LABEL_NAME_CLASH!>@Test6<!>
|
|
}
|
|
}
|
|
}
|
|
|
|
class Test7 {
|
|
fun Test7() {
|
|
Test8@ while (true) {
|
|
<!NOT_A_LOOP_LABEL!>break@Test7<!>
|
|
}
|
|
|
|
<!UNREACHABLE_CODE!>Test7@ while (true) {
|
|
<!NOT_A_LOOP_LABEL!>break<!UNRESOLVED_REFERENCE!>@Test8<!><!>
|
|
}<!>
|
|
}
|
|
} |