Files
kotlin-fork/idea/testData/formatter/LabeledExpression.kt
T
2019-11-05 20:13:11 +07:00

44 lines
379 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
{
}
}
fun test5() {
L1@ val x: Int = 42
}