mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
13 lines
215 B
Kotlin
Vendored
13 lines
215 B
Kotlin
Vendored
interface IFoo<T> {
|
|
fun foo(x: T): String = "O"
|
|
fun T.bar(): String = "K"
|
|
}
|
|
|
|
inline class L(val x: Long) : IFoo<L>
|
|
|
|
fun box(): String {
|
|
val z = L(0L)
|
|
return with(z) {
|
|
foo(z) + z.bar()
|
|
}
|
|
} |