b79719d6f5
- Materialize unit when its value is actually needed. - Special-case Unit_getInstance return type at codegen. It should be a proper Unit object instead of a "void"
9 lines
138 B
Kotlin
Vendored
9 lines
138 B
Kotlin
Vendored
fun println(s: String) {
|
|
}
|
|
|
|
fun box(): String {
|
|
val x = println(":Hi!") as Any
|
|
if (x != Unit) return "Fail: $x"
|
|
return "OK"
|
|
}
|