generate more correct bytecode for casting Unit to other types

This commit is contained in:
Dmitry Jemerov
2015-03-24 19:46:02 +01:00
parent 9d618ca767
commit bb1410b20a
5 changed files with 36 additions and 4 deletions
@@ -0,0 +1 @@
fun box() = if (4 as? Unit != null) "Fail" else "OK"