[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:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user