ReplaceGuardClause inspection: do not remove 'else' branch

#KT-32797 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-22 23:01:28 +09:00
committed by Mikhail Glukhikh
parent a3a3c52c24
commit a6690e4e35
11 changed files with 96 additions and 2 deletions
@@ -0,0 +1,6 @@
// PROBLEM: none
// WITH_RUNTIME
fun test(flag: Boolean): Int {
return <caret>if (!flag) throw IllegalArgumentException() else 1
}