9 lines
137 B
Kotlin
Vendored
9 lines
137 B
Kotlin
Vendored
interface I {
|
|
val <T> T.id: T
|
|
get() = this
|
|
}
|
|
|
|
class A(i: I) : I by i
|
|
|
|
fun box(): String = with(A(object : I {})) { "OK".id }
|