mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixing parse of error type.
This commit is contained in:
@@ -1120,6 +1120,7 @@ ParseRule rules[TOKEN_EOF + 1] = {
|
||||
[TOKEN_QUAD] = { parse_type_identifier, NULL, PREC_NONE },
|
||||
[TOKEN_VOID] = { parse_type_identifier, NULL, PREC_NONE },
|
||||
[TOKEN_TYPEID] = { parse_type_identifier, NULL, PREC_NONE },
|
||||
[TOKEN_ERR] = { parse_type_identifier, NULL, PREC_NONE },
|
||||
|
||||
[TOKEN_ELSE] = { NULL, parse_else_expr, PREC_TRY_ELSE },
|
||||
[TOKEN_QUESTION] = { NULL, parse_ternary_expr, PREC_TERNARY },
|
||||
|
||||
8
test/test_suite/errors/error_union.c3
Normal file
8
test/test_suite/errors/error_union.c3
Normal file
@@ -0,0 +1,8 @@
|
||||
module foo;
|
||||
|
||||
error Blurg;
|
||||
|
||||
func void main()
|
||||
{
|
||||
error foo;
|
||||
}
|
||||
Reference in New Issue
Block a user