Adding "require" precondition. Corrects inferred arrays and fixes so that it uses [*] everywhere. Distict type will now allow methods to be added to it. Added $alignof and $sizeof.

This commit is contained in:
Christoffer Lerno
2021-06-30 11:46:02 +02:00
committed by Christoffer Lerno
parent 12ffeeaad7
commit a5ce7c47ba
33 changed files with 1254 additions and 234 deletions

View File

@@ -14,7 +14,6 @@ define StructArr = distinct Struct2[3];
func void test(int x)
{
StructArr z = { { .x = 1 }, { .y = x }, { 1, 2 }};
usize xr = z.sizeof;
usize len = z.len;
Foo zz = z[2].x;
}