From c3410bf927c863cd33057184e97e6a6169475059 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Fri, 20 May 2011 17:41:36 -0700 Subject: More work on anonymous objects. --- src/comp/front/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 80397f2a65b..8bd02aea74b 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -820,13 +820,13 @@ fn parse_bottom_expr(&parser p) -> @ast::expr { } let vec[@ast::method] meths = []; - let option::t[ast::ident] with_obj = none[ast::ident]; + let option::t[@ast::expr] with_obj = none[@ast::expr]; expect(p, token::LBRACE); while (p.peek() != token::RBRACE) { if (eat_word(p, "with")) { - with_obj = some[ast::ident](parse_ident(p)); + with_obj = some[@ast::expr](parse_expr(p)); } else { vec::push[@ast::method](meths, parse_method(p)); -- cgit 1.4.1-3-g733a5