Properly check expression nullability on attempt to apply == optimizations

#Fix KT-19767
This commit is contained in:
Mikhael Bogdanov
2017-08-22 12:20:33 +02:00
parent f0035a7be0
commit 1a05df204e
9 changed files with 193 additions and 2 deletions
@@ -0,0 +1,6 @@
//WITH_RUNTIME
fun box(): String {
val map: Map<String, Boolean>? = mapOf()
return if (map?.get("") == true) "fail" else "OK"
}