auto type erasure for protocols & struct literal init bloc

This commit is contained in:
agra
2026-02-25 12:25:06 +02:00
parent bfc784734c
commit 4abc7abb54
5 changed files with 196 additions and 1 deletions

View File

@@ -306,6 +306,7 @@ pub const StructLiteral = struct {
struct_name: ?[]const u8, // null for anonymous `.{ ... }`
type_expr: ?*Node = null, // for GenericType(args).{ ... }
field_inits: []const StructFieldInit,
init_block: ?*Node = null, // optional `{ stmts }` block after struct literal
};
pub const Lambda = struct {