Skip to content

Commit 6833200

Browse files
authored
Merge pull request #2626 from ksss/fix-allowed-void
Module-self allow void once
2 parents e59e949 + 4cb64e9 commit 6833200

File tree

2 files changed

+404
-1
lines changed

2 files changed

+404
-1
lines changed

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,7 @@ static bool parse_module_self_types(rbs_parser_t *parser, rbs_node_list_t *array
25892589
if (parser->next_token.type == pLBRACKET) {
25902590
rbs_parser_advance(parser);
25912591
args_range.start = parser->current_token.range.start;
2592-
CHECK_PARSE(parse_type_list(parser, pRBRACKET, args, false));
2592+
CHECK_PARSE(parse_type_list(parser, pRBRACKET, args, true));
25932593
rbs_parser_advance(parser);
25942594
self_range.end = args_range.end = parser->current_token.range.end;
25952595
}

0 commit comments

Comments
 (0)