Teach resolve about obj items.
This commit is contained in:
parent
a7eb1ac90f
commit
4cddeed651
1 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ fn lookup_name(&env e, ast.ident i) -> option.t[def] {
|
|||
case (ast.item_tag(_, _, _, ?id)) {
|
||||
ret some[def](ast.def_ty(id));
|
||||
}
|
||||
case (ast.item_obj(_, _, _, ?id, _)) {
|
||||
ret some[def](ast.def_obj(id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue