This commit is contained in:
agra
2026-03-02 21:00:55 +02:00
parent 2f4f898d54
commit bbb5426777
42 changed files with 483 additions and 9023 deletions

View File

@@ -1,20 +0,0 @@
// Issue: top-level constants from imported files are not visible
// COLOR_WHITE works after fix, but ALIGN_CENTER (struct with enum fields) does not.
// Error: undefined identifier 'ALIGN_CENTER'
#import "modules/std.sx";
#import "examples/issue-0004-defs.sx";
Thing :: struct {
color: Color;
alignment: Alignment;
make :: () -> Thing {
Thing.{ color = COLOR_WHITE, alignment = ALIGN_CENTER };
}
}
main :: () {
t := Thing.make();
print("{}\n", t.color.r);
}