Implement a bit of type parameter matching to get a simple case working.
This commit is contained in:
parent
546d144009
commit
c6dec379b0
3 changed files with 32 additions and 5 deletions
|
@ -476,10 +476,6 @@ fn fold_ty_path(&env e, &span sp, ast.path p, &option.t[def] d) -> @ast.ty {
|
|||
e.sess.unimpl("resolving path ty with >1 component");
|
||||
}
|
||||
|
||||
if (_vec.len[@ast.ty](p.node.types) > 0u) {
|
||||
e.sess.unimpl("resolving path ty with ty params");
|
||||
}
|
||||
|
||||
auto d_ = lookup_name(e, p.node.idents.(0));
|
||||
|
||||
alt (d_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue