1
Fork 0

Implement a bit of type parameter matching to get a simple case working.

This commit is contained in:
Rafael Ávila de Espíndola 2011-01-21 15:01:20 -05:00 committed by Graydon Hoare
parent 546d144009
commit c6dec379b0
3 changed files with 32 additions and 5 deletions

View file

@ -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_) {