Add anonymous structs

This commit is contained in:
nub31
2026-02-25 21:21:28 +01:00
parent d771396bd4
commit cb4aeb9c01
6 changed files with 153 additions and 18 deletions

View File

@@ -1,9 +1,37 @@
module math
struct vec2 { x: i32 y: i32 }
struct vec3 { x: i32 y: i32 z: i32 }
struct color { r: i32 g: i32 b: i32 a: i32 }
struct example { a: vec2 b: vec3 c: color }
struct vec2 {
x: i32
y: i32
}
struct vec3 {
x: i32
y: i32
z: i32
}
struct color {
r: i32
g: i32
b: i32
a: i32
}
struct example {
a: {
a: i32
}
b: {
b: {
c: i32
}
c: {
d: i32
}
}
}
export enum message {
quit