Ensure, $eval and $evaltype, @unreachable() replaces $unreachable. <Type>.sizeof

This commit is contained in:
Christoffer Lerno
2022-03-02 23:01:43 +01:00
committed by Christoffer Lerno
parent 4f4bc80953
commit 2802b2b96d
51 changed files with 1146 additions and 1163 deletions

View File

@@ -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 };