13 lines
190 B
Kotlin
Vendored
13 lines
190 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
interface IFoo<T> {
|
|
fun foo(x: T): String
|
|
}
|
|
|
|
@JvmInline
|
|
value class Z(val x: Int) : IFoo<Z> {
|
|
override fun foo(x: Z) = "OK"
|
|
}
|
|
|
|
fun box(): String =
|
|
Z(1).foo(Z(2)) |