mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
170 B
Kotlin
Vendored
11 lines
170 B
Kotlin
Vendored
interface A {
|
|
val foo: Int
|
|
val bar: String
|
|
get() = ""
|
|
}
|
|
|
|
fun test(foo: Int, bar: Int) {
|
|
object : A {
|
|
override val foo: Int = foo + bar
|
|
}
|
|
} |