Check correct element to determine if 'if' rbrace needs wrapping

#KT-22093 Fixed
This commit is contained in:
Dmitry Jemerov
2018-01-02 18:07:02 +01:00
parent e9ca6a6038
commit 6299e0e941
3 changed files with 12 additions and 15 deletions
+4
View File
@@ -4,6 +4,10 @@ fun x() {
) {
println("> 0")
}
if (foo.length > 0) {
println("> 0")
}
}
// SET_TRUE: IF_RPAREN_ON_NEW_LINE
+4
View File
@@ -3,6 +3,10 @@ fun x() {
barLen > 0) {
println("> 0")
}
if (foo.length > 0) {
println("> 0")
}
}
// SET_TRUE: IF_RPAREN_ON_NEW_LINE