Skip to content

Commit 107f827

Browse files
committed
Fix mistake in typechecker error refactor
1 parent 74d4e2a commit 107f827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/typeck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ fn lookup_method(fcx: @fn_ctxt, expr: @ast::expr, node_id: ast::node_id,
15901590
let has_self = ty::type_has_params(fty);
15911591
if method_n_tps + n_tps > 0u {
15921592
if n_tys == 0u || n_tys != method_n_tps {
1593-
if n_tys != method_n_tps {
1593+
if n_tys != 0u {
15941594
tcx.sess.span_err
15951595
(expr.span, "incorrect number of type \
15961596
parameters given for this method");

0 commit comments

Comments
 (0)