mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
15 lines
190 B
Kotlin
Vendored
15 lines
190 B
Kotlin
Vendored
class Test {
|
|
val Int.foo: String
|
|
get() {
|
|
return "OK"
|
|
}
|
|
|
|
fun test(): String {
|
|
return 1.foo
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test().test()
|
|
}
|