Implement automatic overloaded dereference.

Closes #7141.
This commit is contained in:
Eduard Burtescu 2014-03-06 19:24:11 +02:00
parent cdc18b96d6
commit 20b4e159ed
33 changed files with 876 additions and 926 deletions

View file

@ -523,7 +523,7 @@ impl CFGBuilder {
}
fn is_method_call(&self, expr: &ast::Expr) -> bool {
let method_map = self.method_map.borrow();
method_map.get().contains_key(&expr.id)
let method_call = typeck::MethodCall::expr(expr.id);
self.method_map.borrow().get().contains_key(&method_call)
}
}