// "Create extension function 'List.foo'" "true" open class A fun main(args: Array) { class Local : A() val list = listOf(1, 2, 4, 5) list.foo { Local() } } private fun List.foo(function: () -> A) { TODO("Not yet implemented") }