Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/approximateLocalClassRuntime.kt.after
T
Alexey Sedunov ae06f01c95 Create from Usage: Approximate unresolvable types
#KT-7722 Fixed
(cherry picked from commit 917cd22)
2016-07-20 16:36:12 +03:00

15 lines
333 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() }
}
fun <E> List<E>.foo(function: () -> A) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}