f19eb20803
#KT-5287 Fixed
29 lines
757 B
Kotlin
29 lines
757 B
Kotlin
// ERROR: The label '@OuterLoop1' does not denote a loop
|
|
public object TestClass {
|
|
public fun main(args: Array<String>) {
|
|
var i = 1
|
|
@OuterLoop1 @OuterLoop2 while (i < 1000) {
|
|
var j = 1
|
|
@InnerLoop while (j < 100) {
|
|
if (j == 3) {
|
|
j *= 3
|
|
continue@InnerLoop
|
|
}
|
|
if (i == j) {
|
|
i *= 2
|
|
continue@OuterLoop1
|
|
}
|
|
System.err.println(j)
|
|
if (j == 9) {
|
|
j *= 3
|
|
continue
|
|
}
|
|
j *= 3
|
|
}
|
|
i *= 2
|
|
}
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) = TestClass.main(args)
|