Condition of 'if' expression is constant: don't report when condition has named reference

#KT-27651 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-27 17:06:45 +09:00
committed by Yan Zhulanow
parent bfb5efd490
commit 6ee4b5e393
3 changed files with 14 additions and 4 deletions
@@ -0,0 +1,7 @@
// PROBLEM: none
const val s = "debug"
fun main() {
if (<caret>s == "debug") {
}
}