mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update tests to (Foo) { ... } syntax.
This commit is contained in:
@@ -6,11 +6,11 @@ struct Test
|
||||
char[2] id;
|
||||
}
|
||||
|
||||
Test t = Test{"id"};
|
||||
Test t = (Test){"id"};
|
||||
fn int main()
|
||||
{
|
||||
io::printn(t);
|
||||
Test y = Test { "id" };
|
||||
Test y = (Test) { "id" };
|
||||
io::printn();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user