[Wasm] Disallow dynamic type in K2 (KT-56849)

This commit is contained in:
Svyatoslav Kuzmich
2023-10-23 15:02:35 +02:00
committed by Space Team
parent 5cac013d8c
commit aeeb5d5c48
4 changed files with 21 additions and 8 deletions
@@ -0,0 +1,18 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.analysis.wasm.checkers
import org.jetbrains.kotlin.fir.analysis.checkers.declaration.*
import org.jetbrains.kotlin.fir.analysis.checkers.type.FirTypeRefChecker
import org.jetbrains.kotlin.fir.analysis.checkers.type.TypeCheckers
import org.jetbrains.kotlin.fir.analysis.wasm.checkers.declaration.*
object WasmTypeCheckers : TypeCheckers() {
override val typeRefCheckers: Set<FirTypeRefChecker>
get() = setOf(
FirDynamicUnsupportedChecker,
)
}