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