Fix "Add braces to if" when semicolon is used instead of a new line

So #KT-23123 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-06 04:52:45 +03:00
committed by Mikhail Glukhikh
parent 369dbd604b
commit 8082a5daf7
4 changed files with 31 additions and 7 deletions
@@ -0,0 +1,5 @@
fun <T> doSomething(a: T) {}
fun foo() {
<caret>if (true) doSomething("test"); doSomething("")
}
@@ -0,0 +1,8 @@
fun <T> doSomething(a: T) {}
fun foo() {
if (true) {
doSomething("test")
}
doSomething("")
}