[FIR] Check for isFun flag in SAM resolution
This commit is contained in:
Vendored
+3
-3
@@ -3,7 +3,7 @@
|
||||
|
||||
fun test() {
|
||||
val list: MutableList<(String) -> String> = null!!
|
||||
<!AMBIGUITY!>list += { <!UNRESOLVED_REFERENCE!>it<!> }<!>
|
||||
list += { it }
|
||||
}
|
||||
|
||||
class A<T>(private val executor: ((T) -> Unit) -> Unit)
|
||||
@@ -12,8 +12,8 @@ fun <T> postpone(computation: () -> T): A<T> {
|
||||
val queue = mutableListOf<() -> Unit>()
|
||||
|
||||
return A { resolve ->
|
||||
<!AMBIGUITY!>queue += {
|
||||
queue += {
|
||||
resolve(computation())
|
||||
}<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user