Merge pull request #7180 from BradLewis/fix/parser-field-specialization-end

Correct end position for fields with a specialization
This commit is contained in:
gingerBill
2026-08-01 16:16:51 +02:00
committed by GitHub

View File

@@ -2651,7 +2651,7 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
specialization: ^ast.Expr
if allow_token(p, .Quo) {
specialization = parse_type(p)
end = specialization.pos
end = specialization.end
}
if is_blank_ident(type) {
error(p, type.pos, "invalid polymorphic type definition with a blank identifier")