mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Ensure, $eval and $evaltype, @unreachable() replaces $unreachable. <Type>.sizeof
This commit is contained in:
committed by
Christoffer Lerno
parent
4f4bc80953
commit
2802b2b96d
@@ -6,7 +6,7 @@ struct Foo
|
||||
long bar;
|
||||
}
|
||||
|
||||
private usize x = $sizeof(Foo);
|
||||
private usize x = Foo.sizeof;
|
||||
|
||||
private Foo foo1 = { 1, 2 };
|
||||
private Foo foo2 = { .foo = 2 };
|
||||
|
||||
Reference in New Issue
Block a user