mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
11 lines
195 B
Kotlin
Vendored
11 lines
195 B
Kotlin
Vendored
// SIBLING:
|
|
fun main(args: Array<String>) {
|
|
<selection>val a = 1</selection>
|
|
val t = object: T {
|
|
override fun foo(n: Int) = n + a
|
|
}
|
|
}
|
|
|
|
interface T {
|
|
fun foo(n: Int): Int
|
|
} |