[FIR] builder: provide containingDeclarationSymbol
We cannot use only non-local declarations as anchors due to the same resolution logic between member declarations of local classes, so we have to support such cases as well ^KT-63042
This commit is contained in:
committed by
Space Team
parent
be4bc81b1b
commit
c5cba4c053
+3
-1
@@ -258,7 +258,7 @@ val ConeKotlinType.isAbstractOrSealedOrInterface: Boolean
|
||||
|
||||
|
||||
context(FirExtension)
|
||||
fun FirAnnotationContainer.excludeFromJsExport() {
|
||||
fun FirDeclaration.excludeFromJsExport() {
|
||||
if (!session.moduleData.platform.isJs()) {
|
||||
return
|
||||
}
|
||||
@@ -275,6 +275,8 @@ fun FirAnnotationContainer.excludeFromJsExport() {
|
||||
name = jsExportIgnoreAnnotation.name
|
||||
resolvedSymbol = jsExportIgnoreConstructor
|
||||
}
|
||||
|
||||
containingDeclarationSymbol = this@excludeFromJsExport.symbol
|
||||
}
|
||||
|
||||
replaceAnnotations(annotations + jsExportIgnoreAnnotationCall)
|
||||
|
||||
Reference in New Issue
Block a user