Files
Dmitry Gridin 516f44f7cf Formatter: fix line break between label and property
#KT-22273 Fixed

GitOrigin-RevId: 994c428e0dcb8f547dfa210df7a3bf38b5d6c2d7
2019-11-05 16:13:11 +03:00

44 lines
379 B
Kotlin

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
}