[Wasm] Port JS interop type checker to K2 (KT-56849)
This commit is contained in:
committed by
Space Team
parent
0c46cfd761
commit
15d3bf5e25
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user