Parse, store and print type parameter kind constraints.

This commit is contained in:
Graydon Hoare 2011-07-28 17:22:59 +00:00
parent 1836f59d9a
commit acac6abc85
5 changed files with 49 additions and 7 deletions

View file

@ -31,7 +31,7 @@ type def_id = {crate: crate_num, node: node_id};
const local_crate: crate_num = 0;
fn local_def(id: node_id) -> def_id { ret {crate: local_crate, node: id}; }
type ty_param = ident;
type ty_param = {ident: ident, kind: kind};
tag def {
def_fn(def_id, purity);