Files
kotlin/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt
2020-03-24 18:58:19 +03:00

12 lines
193 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
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))