This commit is contained in:
nub31
2026-03-16 18:10:03 +01:00
parent bdeb2c4d73
commit bc65c3f4fd
7 changed files with 55 additions and 23 deletions

View File

@@ -210,6 +210,7 @@ public class ModuleGraph
NodeTypeSInt type => NubTypeSInt.Get(type.Width),
NodeTypeUInt type => NubTypeUInt.Get(type.Width),
NodeTypeString => NubTypeString.Instance,
NodeTypeChar => NubTypeChar.Instance,
NodeTypeVoid => NubTypeVoid.Instance,
NodeTypeArray type => NubTypeArray.Get(ResolveType(type.ElementType, currentModule)),
_ => throw new ArgumentOutOfRangeException(nameof(node))
@@ -442,4 +443,4 @@ public class Module(string name)
public NubType? Type { get; } = type;
}
}
}
}