Files
Nikolay Krasko 282078e8bc Indent content of when (KT-14066)
#KT-14066 Fixed

GitOrigin-RevId: 9bcc84ef44b68ae69c69ebb9dc9a95f4b36b5857
2018-06-22 19:19:12 +03:00

58 lines
572 B
Kotlin

fun foo(i: Int) {
when {
// line
1 -> 2
// One line before
2 -> 3
// Many lines before
3 -> 4
/* Block */
4 -> 5
/*
Block multiline
*/
5 -> 6
/** Doc */
6 -> 7
}
when { // Assigned to entry
1 -> 2
}
when {
// Line
else -> 8
}
when {
/* Block */
else -> 8
}
when {
/**
* Doc
*/
else -> 8
}
when {
1 ->
2 // Two
else ->
43 // 42
}
}