Add missing case to parse_ty, un-XFAIL cast.rs.
This commit is contained in:
parent
68af077e81
commit
6ccfba34f3
@ -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 \
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user