Skip to content

Commit d6996c0

Browse files
committed
Fix bug where resolve didn't descend method ty params
Closes #1700
1 parent 2ca0b37 commit d6996c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ fn visit_item_with_scope(e: @env, i: @ast::item, sc: scopes, v: vt<scopes>) {
445445
v.visit_ty(sty, sc, v);
446446
for m in methods {
447447
let msc = cons(scope_method(i.id, tps + m.tps), @sc);
448-
v.visit_fn(visit::fk_method(m.ident, []),
448+
v.visit_fn(visit::fk_method(m.ident, m.tps),
449449
m.decl, m.body, m.span, m.id, msc, v);
450450
}
451451
}

0 commit comments

Comments
 (0)