Fix native build (#1832)

This commit is contained in:
Jen Basch
2026-08-26 22:45:18 +00:00
committed by GitHub
parent cb01d6275b
commit 1cfdd3d30d
8 changed files with 99 additions and 272 deletions
@@ -3213,10 +3213,12 @@ public abstract class TypeNode extends PklNode {
// clazz will be null iff the type arg is a not a valid class type
if (clazz == null) {
CompilerDirectives.transferToInterpreter();
throw new VmTypeMismatchException.ClassType(sourceSection, value, typeNode.doExport());
}
if (!value.isSubclassOf(clazz)) {
CompilerDirectives.transferToInterpreter();
throw new VmTypeMismatchException.ClassType(sourceSection, value, clazz);
}
@@ -231,6 +231,7 @@ public final class VmTypeAlias extends VmValue {
}
@Override
@TruffleBoundary
public TypeAlias export() {
synchronized (pTypeAliasLock) {
if (__pTypeAlias == null) {