mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
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:
committed by
Christoffer Lerno
parent
12ffeeaad7
commit
a5ce7c47ba
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user