ReplaceGuardClause inspection: don't report when argument is not String

This commit is contained in:
Toshiaki Kameyama
2019-06-10 18:46:59 +09:00
committed by Mikhail Glukhikh
parent 90b0ea73dc
commit 8cbcb66197
3 changed files with 22 additions and 2 deletions
@@ -0,0 +1,8 @@
// PROBLEM: none
// WITH_RUNTIME
fun test() {
try {
} catch (e: Exception) {
<caret>if (e is RuntimeException) throw IllegalStateException(e)
}
}