Also do normal impl method lookup for type parameters

Closes #1909
This commit is contained in:
Marijn Haverbeke 2012-02-28 16:36:58 +01:00
parent 2115cba4ee
commit 1ed12f3602
1 changed files with 1 additions and 2 deletions

View File

@ -1756,7 +1756,6 @@ fn lookup_method_inner(fcx: @fn_ctxt, expr: @ast::expr,
_ {} _ {}
} }
} }
ret none;
} }
ty::ty_iface(did, tps) { ty::ty_iface(did, tps) {
let i = 0u; let i = 0u;
@ -3158,7 +3157,7 @@ mod dict {
} }
} }
} }
ty::ty_iface(did, _) { ty::ty_iface(did, _) if iface_id == did {
ret dict_iface(did); ret dict_iface(did);
} }
_ { _ {