"Invert if condition" intention works better for non-symmetric if's
#KT-5009 Fixed
This commit is contained in:
@@ -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(){}
|
||||
Reference in New Issue
Block a user