This commit is contained in:
agra
2026-02-11 14:07:43 +02:00
parent cdc6c59dda
commit 94b0296fd5
11 changed files with 406 additions and 674 deletions

View File

@@ -245,10 +245,8 @@ pub const Analyzer = struct {
const elem_name = elem_type.displayName(self.allocator) catch return .void_type;
return .{ .many_pointer_type = .{ .element_name = elem_name } };
}
// Parameterized type: Vector(N, T) or generic struct
// Sema does not resolve generics; codegen handles instantiation
if (tn.data == .parameterized_type_expr) {
// For now, skip generic instantiation — just return void_type
// (will be extended when generic support is added to sema)
return .void_type;
}
// type_expr or identifier — check aliases, enums, structs