enum, union

This commit is contained in:
agra
2026-02-14 13:17:22 +02:00
parent 4ff828fd1a
commit 025b790411
14 changed files with 537 additions and 245 deletions

View File

@@ -71,7 +71,7 @@ main :: () {
// inline generic type
Sx :: (user: $T) -> Type {
return union {
return enum {
counter: s32;
user: T;
};