Revert "Revert "Instantiation of annotations for JVM IR with the corresponding feature flag""

Fix incorrectly rebased ce0a3a57df

This reverts commit 3d0126d5
This commit is contained in:
Leonid Startsev
2021-07-21 18:22:29 +03:00
parent 54b9ad6bf5
commit 83c1a75c1e
60 changed files with 1593 additions and 64 deletions
@@ -13,6 +13,7 @@ import org.jetbrains.kotlin.js.analyze.JsNativeDiagnosticSuppressor
import org.jetbrains.kotlin.js.naming.NameSuggestion
import org.jetbrains.kotlin.js.resolve.diagnostics.*
import org.jetbrains.kotlin.resolve.PlatformConfiguratorBase
import org.jetbrains.kotlin.resolve.calls.checkers.InstantiationOfAnnotationClassesCallChecker
import org.jetbrains.kotlin.resolve.checkers.ExpectedActualDeclarationChecker
import org.jetbrains.kotlin.resolve.deprecation.CoroutineCompatibilitySupport
import org.jetbrains.kotlin.types.DynamicTypesAllowed
@@ -29,9 +30,10 @@ object JsPlatformConfigurator : PlatformConfiguratorBase(
JsExportDeclarationChecker
),
additionalCallCheckers = listOf(
JsModuleCallChecker,
JsDynamicCallChecker,
JsDefinedExternallyCallChecker,
JsModuleCallChecker,
JsDynamicCallChecker,
JsDefinedExternallyCallChecker,
InstantiationOfAnnotationClassesCallChecker
),
identifierChecker = JsIdentifierChecker
) {