| ... | @@ -2774,9 +2774,9 @@ fn parsePrimaryTypeExpr(p: *Parse) !?Node.Index { | ... | @@ -2774,9 +2774,9 @@ fn parsePrimaryTypeExpr(p: *Parse) !?Node.Index { |
| 2774 | else => { | 2774 | else => { |
| 2775 | const main_token = p.nextToken(); | 2775 | const main_token = p.nextToken(); |
| 2776 | const period = p.eatToken(.period); | 2776 | const period = p.eatToken(.period); |
| 2777 | if (period == null) try p.warnExpected(.period); | 2777 | if (period == null) return p.failExpected(.period); |
| 2778 | const identifier = p.eatToken(.identifier); | 2778 | const identifier = p.eatToken(.identifier); |
| 2779 | if (identifier == null) try p.warnExpected(.identifier); | 2779 | if (identifier == null) return p.failExpected(.identifier); |
| 2780 | return try p.addNode(.{ | 2780 | return try p.addNode(.{ |
| 2781 | .tag = .error_value, | 2781 | .tag = .error_value, |
| 2782 | .main_token = main_token, | 2782 | .main_token = main_token, |