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:
Brian Anderson 2011-10-18 19:39:09 -07:00
parent 391e12124b
commit f324704c0a
2 changed files with 9 additions and 11 deletions

View file

@ -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 != '[' {