"Invert if condition" intention works better for non-symmetric if's

#KT-5009 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-05-12 22:25:07 +03:00
parent 181af17315
commit 279b406bca
34 changed files with 512 additions and 21 deletions
@@ -0,0 +1,11 @@
// ERROR: A 'return' expression required in a function with a block body ('{...}')
fun foo(): Int {
val x = 2
<caret>if (x <= 1) {
} else {
bar()
}
}
fun bar(){}