blob: e744995772c1ccea3178d87036ffc17fbf6f6da6 [file] [log] [blame]
// JVM_TARGET: 11
data class A(val x: Unit)
fun test(): Unit {}
interface B<T> {
fun test() : T {
return null!!
}
}
class Foo : B<Unit> {
}
fun box(): String {
val a = A(Unit)
val test = "Test ${a.component1()} ${test()} ${Foo().test()}"
return "OK"
}
// one in data class `toString` and one in `box` method
// 2 INVOKEDYNAMIC makeConcatWithConstants
// 1 makeConcatWithConstants\(Lkotlin/Unit;\)
// 1 makeConcatWithConstants\(Lkotlin/Unit;Lkotlin/Unit;Lkotlin/Unit;\)
// 0 append
// 0 stringPlus