mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: restore outer variable in index exprs
This commit is contained in:
committed by
Alexander Medvednikov
parent
3bb559b4c8
commit
6d35f68242
@@ -1946,6 +1946,7 @@ fn (p mut Parser) index_expr(typ_ string, fn_ph int) string {
|
||||
if close_bracket {
|
||||
p.gen(']/*r$typ $v.is_mut*/')
|
||||
}
|
||||
p.expr_var = v
|
||||
}
|
||||
// TODO move this from index_expr()
|
||||
// TODO if p.tok in ...
|
||||
|
||||
Reference in New Issue
Block a user