Control flow with empty body: do not report 'if' with comments

#KT-34325 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-15 10:00:42 +09:00
committed by Dmitry Gridin
parent 615d3aafef
commit 15613afa20
3 changed files with 20 additions and 2 deletions
@@ -0,0 +1,12 @@
// PROBLEM: none
fun test(i: Int) {
<caret>if (i == 1) {
// comment
} else {
return
}
foo()
}
fun foo() {}