Support interface casting in the typechecker

Issue #1437
This commit is contained in:
Marijn Haverbeke 2012-01-06 16:25:04 +01:00
parent d214e3df16
commit d23e2052e0
2 changed files with 34 additions and 6 deletions

View file

@ -1892,7 +1892,7 @@ fn visit_mod_with_impl_scope(e: @env, m: ast::_mod, s: span, sc: iscopes,
fn resolve_impl_in_expr(e: @env, x: @ast::expr, sc: iscopes, v: vt<iscopes>) {
alt x.node {
ast::expr_field(_, _, _) | ast::expr_path(_) {
ast::expr_field(_, _, _) | ast::expr_path(_) | ast::expr_cast(_, _) {
e.impl_map.insert(x.id, sc);
}
_ {}