Skip to content

Commit 1ed12f3

Browse files
committed
Also do normal impl method lookup for type parameters
Closes #1909
1 parent 2115cba commit 1ed12f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/middle/typeck.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,6 @@ fn lookup_method_inner(fcx: @fn_ctxt, expr: @ast::expr,
17561756
_ {}
17571757
}
17581758
}
1759-
ret none;
17601759
}
17611760
ty::ty_iface(did, tps) {
17621761
let i = 0u;
@@ -3158,7 +3157,7 @@ mod dict {
31583157
}
31593158
}
31603159
}
3161-
ty::ty_iface(did, _) {
3160+
ty::ty_iface(did, _) if iface_id == did {
31623161
ret dict_iface(did);
31633162
}
31643163
_ {

0 commit comments

Comments
 (0)