mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
8 lines
176 B
Kotlin
Vendored
8 lines
176 B
Kotlin
Vendored
// "Create extension function 'List<Int>.foo'" "true"
|
|
|
|
open class A
|
|
|
|
fun main(args: Array<String>) {
|
|
val list = listOf(1, 2, 4, 5)
|
|
list.<caret>foo { object : A() {} }
|
|
} |