File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2774,9 +2774,9 @@ fn parsePrimaryTypeExpr(p: *Parse) !?Node.Index {
2774
2774
else = > {
2775
2775
const main_token = p .nextToken ();
2776
2776
const period = p .eatToken (.period );
2777
- if (period == null ) try p .warnExpected (.period );
2777
+ if (period == null ) return p .failExpected (.period );
2778
2778
const identifier = p .eatToken (.identifier );
2779
- if (identifier == null ) try p .warnExpected (.identifier );
2779
+ if (identifier == null ) return p .failExpected (.identifier );
2780
2780
return try p .addNode (.{
2781
2781
.tag = .error_value ,
2782
2782
.main_token = main_token ,
Original file line number Diff line number Diff line change @@ -6280,7 +6280,6 @@ test "recovery: invalid global error set access" {
6280
6280
\\}
6281
6281
, &[_ ]Error {
6282
6282
.expected_token ,
6283
- .expected_token ,
6284
6283
});
6285
6284
}
6286
6285
You can’t perform that action at this time.
0 commit comments