Error reporting from call resolver - do not highlight outer call when inner expression has errors.
compiler/fir/analysis-tests/testData/resolve/problems/kt8686.kt
The test reproduces the scenario from KT-1989 (a sub-issue of KT-8686): calling foo(1, unresolvedName) where unresolvedName is unresolved.
In FIR/K2, the compiler correctly produces only UNRESOLVED_REFERENCE on unresolvedName and does not emit an additional error on the outer call expression foo(1, ...). This is the desired behavior described in the ticket.
KT-1989 (which gave the concrete example for this test) was marked “Obsolete” as of 1.3.11, and the fix persists in FIR. The bug is not present in the current FIR implementation.
Both PhasedJvmDiagnosticLightTreeTestGenerated and PhasedJvmDiagnosticPsiTestGenerated pass cleanly.