Files
kotlin-fork/idea/testData/editor/enterHandler/afterUnmatchedBrace/whenBeforeMemberPropertyInitializer.kt
T
Toshiaki Kameyama 37ba9eccc4 KT-31553 Complete Statement: Wrong auto-insertion of closing curly brace for a code block (#2378)
* Complete statement: wrap property initializer by run/when block

#KT-31553 Fixed
2020-09-25 16:04:03 +02:00

17 lines
212 B
Kotlin
Vendored

class Test {
val test = when {<caret>foo()
fun foo(): Int {
return 42
}
}
//-----
class Test {
val test = when {
<caret>foo()
}
fun foo(): Int {
return 42
}
}