[Wasm] Allow incomplete implementations for PL

This commit is contained in:
Igor Yakovlev
2024-03-06 23:08:37 +01:00
committed by Space Team
parent 1e798a2527
commit 8851ccc35d
@@ -309,7 +309,7 @@ class DeclarationGenerator(
val classMethod: VirtualMethodMetadata? = metadata.virtualMethods
.find { it.signature == method.signature && it.function.modality != Modality.ABSTRACT } // TODO: Use map
if (classMethod == null && !allowIncompleteImplementations) {
if (classMethod == null && !allowIncompleteImplementations && !context.backendContext.partialLinkageSupport.isEnabled) {
error("Cannot find interface implementation of method ${method.signature} in class ${klass.fqNameWhenAvailable}")
}