[FIR][checkers][Wasm] Turn FirWasmJsInteropTypesChecker into a platform checker

#KT-66475 Fixed
This commit is contained in:
Stanislav Ruban
2024-03-11 04:11:10 +02:00
committed by Space Team
parent 478c1a6d50
commit 8f420eb3e1
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.fir.resolve.fullyExpandedType
import org.jetbrains.kotlin.fir.types.*
import org.jetbrains.kotlin.name.WasmStandardClassIds
object FirWasmJsInteropTypesChecker : FirBasicDeclarationChecker(MppCheckerKind.Common) {
object FirWasmJsInteropTypesChecker : FirBasicDeclarationChecker(MppCheckerKind.Platform) {
override fun check(declaration: FirDeclaration, context: CheckerContext, reporter: DiagnosticReporter) {
val session = context.session
@@ -4,7 +4,7 @@
expect interface ExternalInterface
external fun externalFunction(arg: <!WRONG_JS_INTEROP_TYPE!>ExternalInterface<!>)
external fun externalFunction(arg: ExternalInterface)
// MODULE: wasm()()(commonwasm)
// TARGET_PLATFORM: Wasm