From f88fafea9d6d3c97aeb27e0edfd3a5d66d1139df Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 10 Jun 2019 16:39:20 +0300 Subject: [PATCH] [FIR] Use proper collections for override scope --- .../jetbrains/kotlin/fir/scopes/impl/FirSuperTypeScope.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirSuperTypeScope.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirSuperTypeScope.kt index 463a1d55eb6..b8b2000f621 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirSuperTypeScope.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirSuperTypeScope.kt @@ -19,8 +19,8 @@ class FirSuperTypeScope( ) : AbstractFirOverrideScope(session) { override fun processFunctionsByName(name: Name, processor: (ConeFunctionSymbol) -> ProcessorAction): ProcessorAction { - val accepted = mutableSetOf() - val pending = mutableSetOf() + val accepted = HashSet() + val pending = mutableListOf() for (scope in scopes) { if (scope.processFunctionsByName(name) { @@ -41,8 +41,8 @@ class FirSuperTypeScope( } override fun processPropertiesByName(name: Name, processor: (ConeVariableSymbol) -> ProcessorAction): ProcessorAction { - val accepted = mutableSetOf() - val pending = mutableSetOf() + val accepted = HashSet() + val pending = mutableListOf() for (scope in scopes) { if (scope.processPropertiesByName(name) { if (it !in accepted && it.isOverridden(accepted) == null) {