for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)

#KT-2062 Fixed
This commit is contained in:
Dmitry Jemerov
2012-06-08 17:43:02 +02:00
parent 5c21564b05
commit 56310599a5
4 changed files with 15 additions and 2 deletions
@@ -0,0 +1,5 @@
fun box(): String {
val a = if(true) {
}
return if (a.toString() == "()") "OK" else "fail"
}