mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
15 lines
205 B
Kotlin
Vendored
15 lines
205 B
Kotlin
Vendored
// FILE: Base.java
|
|
|
|
interface Interface {
|
|
String call(String t);
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
val String.property: String
|
|
get() = this
|
|
|
|
fun box(): String {
|
|
return Interface(String::property).call("OK")
|
|
}
|