[FIR] Update testdata due to incorrect SAM detection

This commit is contained in:
Dmitriy Novozhilov
2020-07-06 16:29:07 +03:00
parent 29849b1330
commit a3a79e4295
2 changed files with 13 additions and 12 deletions
@@ -3,17 +3,17 @@
fun test() {
val list: MutableList<(String) -> String> = null!!
list += { it }
<!AMBIGUITY!>list += { <!UNRESOLVED_REFERENCE!>it<!> }<!>
}
//class A<T>(private val executor: ((T) -> Unit) -> Unit)
//
//fun <T> postpone(computation: () -> T): A<T> {
// val queue = mutableListOf<() -> Unit>()
//
// return A { resolve ->
// queue += {
// resolve(computation())
// }
// }
//}
class A<T>(private val executor: ((T) -> Unit) -> Unit)
fun <T> postpone(computation: () -> T): A<T> {
val queue = mutableListOf<() -> Unit>()
return A { resolve ->
<!AMBIGUITY!>queue += {
resolve(computation())
}<!>
}
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
// WITH_COROUTINES