Add missing case to parse_ty, un-XFAIL cast.rs.

This commit is contained in:
Graydon Hoare 2010-12-08 15:04:57 -08:00
parent 68af077e81
commit 6ccfba34f3
2 changed files with 2 additions and 0 deletions

View file

@ -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; }