[NI] Don't process lambda until expected type will be fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class MyList<T>
|
||||
|
||||
operator fun <T> MyList<T>.plusAssign(element: T) {}
|
||||
|
||||
val listOfFunctions = MyList<(Int) -> Int>()
|
||||
|
||||
fun foo() {
|
||||
listOfFunctions.plusAssign({ it -> it })
|
||||
listOfFunctions += { it -> it }
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun test() = foo({ line: String -> line })
|
||||
|
||||
fun <T> foo(x: T): T = TODO()
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user