[AA] Fix processing of declared constructors in enhancement scope
^KTIJ-24948 Fixed
This commit is contained in:
committed by
Space Team
parent
46db4b4e6d
commit
f39d5d57e1
+2
-4
@@ -64,10 +64,8 @@ internal class JavaClassDeclaredMembersEnhancementScope(
|
||||
}
|
||||
|
||||
override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
|
||||
owner.declarations.filterIsInstance<FirConstructor>().forEach { constructor ->
|
||||
useSiteMemberEnhancementScope.processDeclaredConstructors {
|
||||
processor(constructor.symbol)
|
||||
}
|
||||
useSiteMemberEnhancementScope.processDeclaredConstructors { symbol ->
|
||||
processor(symbol)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -57,4 +57,10 @@ public class FirIdeNormalAnalysisSourceModuleDeclaredMemberScopeTestGenerated ex
|
||||
public void testJavaDeclaredInheritList() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/declaredMemberScope/javaDeclaredInheritList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaInnerClassConstructor.kt")
|
||||
public void testJavaInnerClassConstructor() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/declaredMemberScope/javaInnerClassConstructor.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user