[FIR] Check for isFun flag in SAM resolution

This commit is contained in:
Dmitriy Novozhilov
2020-07-06 16:48:15 +03:00
parent d1cb776e29
commit 58af8d68a1
11 changed files with 203 additions and 141 deletions
@@ -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())
}<!>
}
}
}