Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/approximateLocalClassRuntime.kt.after
T
2019-11-13 08:37:25 +09:00

15 lines
269 B
Plaintext
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.foo { Local() }
}
private fun <E> List<E>.foo(function: () -> A) {
TODO("Not yet implemented")
}