diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2010-12-08 15:04:57 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2010-12-08 15:04:57 -0800 |
| commit | 6ccfba34f3eab71abc7eed4adc30cfee9fabd49e (patch) | |
| tree | 306a774f45f92a96769ef3a765bd2e8365198f47 /src/comp | |
| parent | 68af077e8192a6a1b18778b97449ad695a4ecffb (diff) | |
| download | rust-6ccfba34f3eab71abc7eed4adc30cfee9fabd49e.tar.gz rust-6ccfba34f3eab71abc7eed4adc30cfee9fabd49e.zip | |
Add missing case to parse_ty, un-XFAIL cast.rs.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/front/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index d8d7ca4e9b1..093d4b7ca8e 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -140,6 +140,7 @@ impure fn parse_ty(parser p) -> @ast.ty { auto hi = lo; let ast.ty_ t; alt (p.peek()) { + case (token.BOOL) { p.bump(); t = ast.ty_bool; } case (token.INT) { p.bump(); t = ast.ty_int; } case (token.UINT) { p.bump(); t = ast.ty_int; } case (token.STR) { p.bump(); t = ast.ty_str; } |
