Files
kotlin/compiler/testData/codegen/box/dataClasses/unitComponent.kt
Mads Ager 8b566fda76 JVM_IR: Perform asm type conversion for string concat arguments.
This ensures that the Unit instance is loaded when string
concatenation contains a sub part that is a call of a Unit
return-type method.
2019-03-13 10:01:21 +01:00

7 lines
143 B
Kotlin
Vendored

data class A(val x: Unit)
fun box(): String {
val a = A(Unit)
return if (a.component1() is Unit) "OK" else "Fail ${a.component1()}"
}