Properly parse 'auto' for loop variable types
This commit is contained in:
parent
f8968d1e71
commit
c0976ad70b
2 changed files with 8 additions and 1 deletions
|
|
@ -1354,7 +1354,7 @@ fn parse_else_expr(&parser p) -> @ast::expr {
|
|||
}
|
||||
|
||||
fn parse_head_local(&parser p) -> @ast::local {
|
||||
if (is_word(p, "auto")) {
|
||||
if (eat_word(p, "auto")) {
|
||||
ret parse_auto_local(p);
|
||||
} else {
|
||||
ret parse_typed_local(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue