[AA] do not try to build KtSymbol for FirErrorFunction

^KTIJ-23669
FirErrorFunctions are created for unknown labels
when the code in return statements is not complete yet.
Such labels cannot be resolved, and no symbols should be created for them
This commit is contained in:
Anna Kozlova
2022-11-23 23:24:16 +01:00
committed by Space Team
parent 03d3885eff
commit cdf6ffa167
6 changed files with 34 additions and 1 deletions
@@ -0,0 +1,8 @@
// UNRESOLVED_REFERENCE
fun bar(block: () -> Unit) {}
fun foo() {
bar {
return@<caret>b
}
}