From 16de3257d5e1db31e5837e97f62b2656242ef205 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 3 Oct 2019 16:29:43 +0300 Subject: [PATCH] FIR abstract importing scope: return NONE when we have no top-level callables --- .../kotlin/fir/scopes/impl/FirAbstractImportingScope.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt index 266cbc96517..5311be3b204 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt @@ -69,6 +69,9 @@ abstract class FirAbstractImportingScope( } } else if (name.isSpecial || name.identifier.isNotEmpty()) { val symbols = provider.getTopLevelCallableSymbols(callableId.packageName, callableId.callableName) + if (symbols.isEmpty()) { + return ProcessorAction.NONE + } for (symbol in symbols) { if (processor(symbol).stop()) {