Map jet.Hashable to java.lang.Object, to avoid NoClassDefFound exceptions

This commit is contained in:
Andrey Breslav
2013-10-25 13:48:09 +04:00
parent 3e43a7ea70
commit 1ff0ffbac6
6 changed files with 43 additions and 1 deletions
@@ -0,0 +1,11 @@
fun box(): String {
val a = true
val x = if (a) {
listOf(1)
}
else {
1
}
// The result of the if() above is implicitly cast to jet.Hashable, which failed before we started to map Hashable to j.l.Object
return "OK"
}