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:
@@ -9,7 +9,7 @@ bitstruct Image_Tag : uint
|
||||
}
|
||||
|
||||
distinct Glyph_Format = CInt;
|
||||
const Glyph_Format GLYPH_FORMAT_BITMAP = (Glyph_Format)Image_Tag {'b', 'i', 't', 's'};
|
||||
const Glyph_Format GLYPH_FORMAT_BITMAP = (Glyph_Format)(Image_Tag) {'b', 'i', 't', 's'};
|
||||
|
||||
fn void main() {
|
||||
// Error: Implicitly casting 'Image_Tag' to 'Glyph_Format' is not permitted
|
||||
|
||||
Reference in New Issue
Block a user