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

@ -526,6 +526,7 @@ TEST_XFAILS_SELF := $(filter-out \
bool-not.rs \
box.rs \
box-in-tup.rs \
cast.rs \
char.rs \
complex.rs \
dead-code-one-arm-if.rs \

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