Make polymorphic impl methods work
Something will still have to be done to the AST to make it possible to say `x.foo::<int>()`, since currently field access never allows type parameters. Issue #1227
This commit is contained in:
parent
cff6bdd036
commit
d529757515
7 changed files with 82 additions and 56 deletions
|
|
@ -423,7 +423,7 @@ tag ret_style {
|
|||
|
||||
type _fn = {decl: fn_decl, proto: proto, body: blk};
|
||||
|
||||
type method_ = {ident: ident, meth: _fn, id: node_id};
|
||||
type method_ = {ident: ident, meth: _fn, id: node_id, tps: [ty_param]};
|
||||
|
||||
type method = spanned<method_>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue