mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
13 lines
223 B
Kotlin
Vendored
13 lines
223 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
interface IFoo<T> {
|
|
fun foo(x: T): String
|
|
}
|
|
|
|
inline class Z(val x: Int) : IFoo<Z> {
|
|
override fun foo(x: Z) = "OK"
|
|
}
|
|
|
|
fun box(): String =
|
|
Z(1).foo(Z(2)) |