Control flow with empty body: do not report 'if' with comments
#KT-34325 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
615d3aafef
commit
15613afa20
+12
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun test(i: Int) {
|
||||
<caret>if (i == 1) {
|
||||
// comment
|
||||
} else {
|
||||
return
|
||||
}
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
Reference in New Issue
Block a user