Parse obj methods as proto_bare
I don't know if this is the right thing to do, but it works and it lets 'fn' always mean proto_bare
This commit is contained in:
parent
391e12124b
commit
f324704c0a
2 changed files with 9 additions and 11 deletions
|
|
@ -281,7 +281,7 @@ fn parse_ty(st: @pstate, sd: str_def) -> ty::t {
|
|||
let proto;
|
||||
alt next(st) as char {
|
||||
'W' { proto = ast::proto_iter; }
|
||||
'F' { proto = ast::proto_fn; }
|
||||
'f' { proto = ast::proto_bare; }
|
||||
}
|
||||
let name = "";
|
||||
while peek(st) as char != '[' {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue