Correct end position for fields with a specialization

This commit is contained in:
Brad Lewis
2026-08-01 19:42:01 +10:00
parent defab8be57
commit e1dead4ce3

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")