commit | 8a66c7e4bc00b2f6a7a4e22f1d1c20dda2ab33cb | [log] [tgz] |
---|---|---|
author | Artem Kobzar <artem.kobzar@jetbrains.com> | Thu Dec 29 15:12:31 2022 +0100 |
committer | Artem Kobzar <artem.kobzar@jetbrains.com> | Thu Dec 29 15:12:31 2022 +0100 |
tree | 773aadc908fcd1f1b7ad8fb58f113742ab661fc7 | |
parent | 63528ee35529abe29f0dabbbd40a64a8f303a249 [diff] |
fix: exclude file from the diagnostics.
diff --git a/compiler/fir/checkers/checkers.js/src/org/jetbrains/kotlin/fir/analysis/js/checkers/declaration/FirJsExportedDeclarationNameClashChecker.kt b/compiler/fir/checkers/checkers.js/src/org/jetbrains/kotlin/fir/analysis/js/checkers/declaration/FirJsExportedDeclarationNameClashChecker.kt index 14950a1..9a39b97 100644 --- a/compiler/fir/checkers/checkers.js/src/org/jetbrains/kotlin/fir/analysis/js/checkers/declaration/FirJsExportedDeclarationNameClashChecker.kt +++ b/compiler/fir/checkers/checkers.js/src/org/jetbrains/kotlin/fir/analysis/js/checkers/declaration/FirJsExportedDeclarationNameClashChecker.kt
@@ -32,7 +32,7 @@ private val alreadyUsedExportedNames = mutableMapOf<ExportedName, FirDeclaration>() override fun check(declaration: FirDeclaration, context: CheckerContext, reporter: DiagnosticReporter) { - if (declaration.isLocalMember || declaration.hasJsExportIgnoreAnnotation()) return + if (declaration.isLocalMember || declaration.hasJsExportIgnoreAnnotation() || declaration is FirFile) return val containingFile = context.containingDeclarations.lastOrNull() as? FirFile