[FIR] Update testdata due to incorrect SAM detection
This commit is contained in:
Vendored
+12
-12
@@ -3,17 +3,17 @@
|
|||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val list: MutableList<(String) -> String> = null!!
|
val list: MutableList<(String) -> String> = null!!
|
||||||
list += { it }
|
<!AMBIGUITY!>list += { <!UNRESOLVED_REFERENCE!>it<!> }<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
//class A<T>(private val executor: ((T) -> Unit) -> Unit)
|
class A<T>(private val executor: ((T) -> Unit) -> Unit)
|
||||||
//
|
|
||||||
//fun <T> postpone(computation: () -> T): A<T> {
|
fun <T> postpone(computation: () -> T): A<T> {
|
||||||
// val queue = mutableListOf<() -> Unit>()
|
val queue = mutableListOf<() -> Unit>()
|
||||||
//
|
|
||||||
// return A { resolve ->
|
return A { resolve ->
|
||||||
// queue += {
|
<!AMBIGUITY!>queue += {
|
||||||
// resolve(computation())
|
resolve(computation())
|
||||||
// }
|
}<!>
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// KJS_WITH_FULL_RUNTIME
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
|
|||||||
Reference in New Issue
Block a user