3cc3ad2b9e
https://github.com/JetBrains/kotlin/pull/978 (cherry picked from commit fdd5ba7)
40 lines
336 B
Kotlin
Vendored
40 lines
336 B
Kotlin
Vendored
fun test1() {
|
|
loop@ while(true) {
|
|
|
|
}
|
|
}
|
|
|
|
fun test2() {
|
|
listOf(1).forEach lit@ {
|
|
if (it == 0) return@lit
|
|
print(it)
|
|
}
|
|
}
|
|
|
|
fun test3() {
|
|
l1@
|
|
|
|
|
|
/*comment*/ {
|
|
|
|
}
|
|
|
|
l2@ /*comment*/ {
|
|
|
|
}
|
|
}
|
|
|
|
fun test4() {
|
|
l1@
|
|
|
|
|
|
//eol comment
|
|
{
|
|
|
|
}
|
|
|
|
l2@ //eol comment
|
|
{
|
|
|
|
}
|
|
} |