Files
kotlin-fork/idea/testData/formatter/LabeledExpression.kt
T
2016-10-20 19:22:00 +03:00

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
{
}
}