Last pieces of self-call support.

The last few pieces of the hack that lets us use trans.trans_call() to
translate self-calls, plus a fix for the parser buy that was
preventing self-call expressions from getting past parsing.
test/run-pass/obj-self.rs works now (as in it actually prints "hi!"
twice!).
This commit is contained in:
Lindsey Kuper
2011-04-05 16:17:47 -07:00
parent b8bb2e118e
commit 4fc8de1969
3 changed files with 37 additions and 6 deletions

View File

@@ -899,7 +899,7 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr {
some(token.COMMA),
pf, p);
hi = es.span;
auto ex = ast.expr_call_self(e, es.node, ast.ann_none);
ex = ast.expr_call_self(e, es.node, ast.ann_none);
}
case (_) {