mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 01:34:35 +00:00
Correct end position for fields with a specialization
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user