[Wasm] Port JS interop type checker to K2 (KT-56849)

This commit is contained in:
Svyatoslav Kuzmich
2023-10-31 12:34:32 +00:00
committed by Space Team
parent 0c46cfd761
commit 15d3bf5e25
12 changed files with 306 additions and 27 deletions
@@ -23,7 +23,6 @@ import org.jetbrains.kotlin.types.typeUtil.isUnit
import org.jetbrains.kotlin.types.typeUtil.makeNotNullable
import org.jetbrains.kotlin.wasm.util.hasValidJsCodeBody
// TODO: Implement in K2: KT-56849
object WasmJsInteropTypesChecker : DeclarationChecker {
override fun check(declaration: KtDeclaration, descriptor: DeclarationDescriptor, context: DeclarationCheckerContext) {
if (descriptor !is MemberDescriptor)
@@ -119,7 +118,7 @@ private fun isTypeSupportedInJsInterop(
return true
}
// Interop type parameters upper bounds should are checked
// Interop type parameters upper bounds should be checked
// on declaration site separately
if (nonNullable.isTypeParameter()) {
return true