Create from Usage: Approximate unresolvable types
#KT-7722 Fixed (cherry picked from commit 917cd22)
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// "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.
|
||||
}
|
||||
Reference in New Issue
Block a user