Add when branches: remove unnecessary blank line

#KT-30426 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-20 10:07:32 +09:00
committed by Mikhail Glukhikh
parent c1984d92ff
commit cbdc79fcda
6 changed files with 60 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Add remaining branches" "true"
// WITH_RUNTIME
sealed class A
class B : A()
fun test(a: A) {
val r = <caret>when (a) {
}
}
@@ -0,0 +1,11 @@
// "Add remaining branches" "true"
// WITH_RUNTIME
sealed class A
class B : A()
fun test(a: A) {
val r = when (a) {
is B -> TODO()
}
}
@@ -0,0 +1,13 @@
// "Add remaining branches" "true"
// WITH_RUNTIME
sealed class A
class B : A()
fun test(a: A) {
val r = <caret>when (a) {
// comment
}
}
@@ -0,0 +1,13 @@
// "Add remaining branches" "true"
// WITH_RUNTIME
sealed class A
class B : A()
fun test(a: A) {
val r = when (a) {
// comment
is B -> TODO()
}
}