diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-16 00:21:02 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-16 00:21:02 +0200 |
| commit | 9ca1d0c763e1c506ae7b43d50db225914b709397 (patch) | |
| tree | ff80aa07a1b1ee6515926ec5d078bc44866a46aa /src/parser.y | |
| parent | 7eaa051d4dcc3048c46f302997fd2175a983ac0e (diff) | |
| download | ek-9ca1d0c763e1c506ae7b43d50db225914b709397.tar.gz ek-9ca1d0c763e1c506ae7b43d50db225914b709397.zip | |
more strict trait checking
Diffstat (limited to 'src/parser.y')
| -rw-r--r-- | src/parser.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.y b/src/parser.y index 18de0e1..45cac92 100644 --- a/src/parser.y +++ b/src/parser.y @@ -683,7 +683,7 @@ opt_types | { $$ = NULL; } type_expand - : APPLY "[" opt_types "]" { $$ = gen_type_expand($1, $3, src_loc(@$)); } + : APPLY { $$ = gen_type_expand($1, NULL, src_loc(@$)); } var_decl : type ID { $$ = gen_var($2, $1, NULL, src_loc(@$)); } @@ -810,8 +810,8 @@ opt_type_params | { $$ = NULL; } trait - : "define" ID "[" opt_type_params "]" "{" opt_behaviours "}" { - $$ = gen_trait($2, $4, $7, src_loc(@$)); + : "define" ID "{" opt_behaviours "}" { + $$ = gen_trait($2, NULL, $4, src_loc(@$)); } enum_val |
