diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt index f7f3e1552bf..06a3526a091 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt @@ -2718,7 +2718,10 @@ open class PsiRawFirBuilder( null -> { CalleeAndReceiver( - buildErrorNamedReference { diagnostic = ConeSyntaxDiagnostic("Call has no callee") } + buildErrorNamedReference { + source = defaultSource + diagnostic = ConeSyntaxDiagnostic("Call has no callee") + } ) }