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"
7 lines
127 B
Kotlin
Vendored
7 lines
127 B
Kotlin
Vendored
data class A(val x: Unit)
|
|
|
|
fun box(): String {
|
|
val a = A(Unit)
|
|
return if ("$a" == "A(x=kotlin.Unit)") "OK" else "$a"
|
|
}
|