Skip to content

Commit 791943b

Browse files
committed
---
yaml --- r: 1377 b: refs/heads/master c: 0043f99 h: refs/heads/master i: 1375: 5e268f1 v: v3
1 parent d053356 commit 791943b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0ebfb8227c190609e80af3fb52b9813c4b282cc0
2+
refs/heads/master: 0043f99f8388ce0df316d7193a00b63d200c2a07

trunk/src/comp/middle/resolve.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ fn lookup_name_wrapped(&env e, ast.ident i) -> option.t[tup(@env, def_wrap)] {
353353
}
354354
}
355355
}
356+
case (ast.item_tag(_, _, ?ty_params, _)) {
357+
for (ast.ty_param tp in ty_params) {
358+
if (_str.eq(tp.ident, i)) {
359+
auto t = ast.def_ty_arg(tp.id);
360+
ret some(def_wrap_other(t));
361+
}
362+
}
363+
}
356364
case (ast.item_mod(_, ?m, _)) {
357365
ret check_mod(i, m);
358366
}

0 commit comments

Comments
 (0)