Fix mistake in typechecker error refactor
This commit is contained in:
parent
74d4e2a32e
commit
107f827b53
1 changed files with 1 additions and 1 deletions
|
@ -1590,7 +1590,7 @@ fn lookup_method(fcx: @fn_ctxt, expr: @ast::expr, node_id: ast::node_id,
|
||||||
let has_self = ty::type_has_params(fty);
|
let has_self = ty::type_has_params(fty);
|
||||||
if method_n_tps + n_tps > 0u {
|
if method_n_tps + n_tps > 0u {
|
||||||
if n_tys == 0u || n_tys != method_n_tps {
|
if n_tys == 0u || n_tys != method_n_tps {
|
||||||
if n_tys != method_n_tps {
|
if n_tys != 0u {
|
||||||
tcx.sess.span_err
|
tcx.sess.span_err
|
||||||
(expr.span, "incorrect number of type \
|
(expr.span, "incorrect number of type \
|
||||||
parameters given for this method");
|
parameters given for this method");
|
||||||
|
|
Loading…
Reference in a new issue