0.7 fixes. Improving the yacc grammar.

This commit is contained in:
Christoffer Lerno
2025-04-04 18:14:16 +02:00
parent ded5fde2d5
commit 3cb5df5639
8 changed files with 51 additions and 38 deletions

View File

@@ -76,7 +76,7 @@ fn void main()
testAllocator(tmem, 126);
testAllocator(tmem, 12600);
ArenaAllocator aa;
aa.init(&&char[1024] {});
aa.init(&&(char[1024]){});
testAllocator(&aa, 126);
io::printn("Test dynamic arena");
DynamicArenaAllocator dynamic_arena;

View File

@@ -13,7 +13,7 @@ struct Foo
fn Foo createFoo(int a, int b = 10)
{
// Compound initializer
return Foo {a, b};
return (Foo) {a, b};
}
struct Bar