mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
Attach pos to if expression errors
This commit is contained in:
parent
74f94d6640
commit
a693a9fa4b
3 changed files with 4 additions and 3 deletions
|
@ -335,7 +335,7 @@ expr_function
|
|||
;
|
||||
|
||||
expr_if
|
||||
: IF expr THEN expr ELSE expr { $$ = new ExprIf($2, $4, $6); }
|
||||
: IF expr THEN expr ELSE expr { $$ = new ExprIf(CUR_POS, $2, $4, $6); }
|
||||
| expr_op
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue