Map Nothing to java.lang.Void

This commit is contained in:
Andrey Breslav
2013-10-25 15:13:23 +04:00
parent 1ff0ffbac6
commit ed95463d1e
11 changed files with 55 additions and 34 deletions
@@ -0,0 +1,5 @@
fun box(): String {
// jet.Nothing should not be loaded here
val x = "" is Nothing
return "OK"
}
@@ -0,0 +1,6 @@
fun box(): String {
// This used to be problematic because of an attempt to load jet/Nothing class
val x = "" is Nothing?
return "OK"
}