unions (untagged)

This commit is contained in:
2026-06-28 09:16:57 +02:00
parent 3007910526
commit f328c44154
6 changed files with 77 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
Val :: union {
n i32
f f64
}
main :: func() i32 {
x Val = Val{ n = 42 }
return x.n
}