[FIR] Transform children independently when callee is an error

To make sure all possible types are resolved and any additional errors
are reported, resolve children of function calls using independent
resolution mode when the callee reference is an error.

#KT-59041 Fixed
This commit is contained in:
Brian Norman
2023-06-13 10:07:09 -05:00
committed by Space Team
parent 2f36886bac
commit 6b5e7ae825
8 changed files with 43 additions and 1 deletions
@@ -0,0 +1,6 @@
// COMPARE_WITH_LIGHT_TREE
// !DIAGNOSTICS: -UNUSED_VARIABLE
fun main() {
val list = <!UNRESOLVED_REFERENCE!>mutable<!> ListOf<!SYNTAX!><<!>Int<!SYNTAX{LT}!><!SYNTAX!>><!>(1) {}<!>
}
@@ -0,0 +1,6 @@
// COMPARE_WITH_LIGHT_TREE
// !DIAGNOSTICS: -UNUSED_VARIABLE
fun main() {
val list = <!UNRESOLVED_REFERENCE!>mutable<!> <!DEBUG_INFO_MISSING_UNRESOLVED!>ListOf<!><!SYNTAX!><<!><!DEBUG_INFO_MISSING_UNRESOLVED!>Int<!><!SYNTAX!>><!>(1) {}
}