Fix another bug in expr_index parse rule.

This commit is contained in:
Graydon Hoare 2010-12-09 17:34:44 -08:00
parent d5ed5e7044
commit 4e1046a508

View file

@ -499,7 +499,7 @@ impure fn parse_path_expr(parser p) -> @ast.expr {
case (token.LPAREN) {
p.bump();
auto ix = parse_bottom_expr(p);
auto ix = parse_expr(p);
hi = ix.span;
expect(p, token.RPAREN);
auto e_ = ast.expr_index(e, ix, ast.ann_none);