[FIR] Update testdata due to incorrect SAM detection
This commit is contained in:
Vendored
+12
-12
@@ -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())
|
||||
}<!>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user