Skip to content

Commit 015c797

Browse files
kssssoutaro
andauthored
Reject class-ish types if it's in an interface
Co-authored-by: Soutaro Matsumoto <matsumoto@soutaro.com>
1 parent 61fa147 commit 015c797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,7 @@ static bool parse_mixin_member(rbs_parser_t *parser, bool from_interface, rbs_po
21462146
&name_range,
21472147
&args_range,
21482148
&name,
2149-
true
2149+
!from_interface
21502150
));
21512151

21522152
CHECK_PARSE(parser_pop_typevar_table(parser));

0 commit comments

Comments
 (0)