FIR: Adjust diagnostics test data after resolution of context receivers

This commit is contained in:
Denis.Zharkov
2022-03-09 14:32:56 +03:00
committed by teamcity
parent ef84dddc88
commit b2d5bf3eae
40 changed files with 106 additions and 311 deletions
@@ -3,7 +3,7 @@
typealias IterableClass<C, T> = (C) -> Iterator<T>
context(IterableClass<C, T>)
fun <C, T> C.iterator(any: Any?): Iterator<T> = this<!UNRESOLVED_LABEL!>@IterableClass<!>.invoke(this)
fun <C, T> C.iterator(any: Any?): Iterator<T> = this@IterableClass.invoke(this)
fun <T> listOf(vararg items: T): List<T> = null!!
@@ -11,8 +11,8 @@ fun test() {
val f: IterableClass<List<Int>, Int> = {
it.listIterator()
}
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>with<!>(f) {
with(f) {
listOf(1, 2, 3).iterator(null)
}
listOf(1, 2, 3).<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>iterator<!>(null)
}
listOf(1, 2, 3).<!NO_CONTEXT_RECEIVER!>iterator<!>(null)
}