auto merge of #8718 : bblum/rust/typeof, r=pcwalton

r? anybody
This commit is contained in:
bors
2013-08-28 15:30:38 -07:00
11 changed files with 78 additions and 4 deletions

View File

@@ -435,6 +435,11 @@ pub fn print_type(s: @ps, ty: &ast::Ty) {
print_expr(s, v);
word(s.s, "]");
}
ast::ty_typeof(e) => {
word(s.s, "typeof(");
print_expr(s, e);
word(s.s, ")");
}
ast::ty_mac(_) => {
fail!("print_type doesn't know how to print a ty_mac");
}