mirror of
https://github.com/apple/pkl.git
synced 2026-08-28 22:47:17 +02:00
Fix native build (#1832)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user