pretty printer: Properly print explicity types for block params

This commit is contained in:
Marijn Haverbeke 2012-04-23 10:27:09 +02:00
parent f2a60a6b02
commit a61f107684

View File

@ -1368,6 +1368,10 @@ fn print_fn_block_args(s: ps, decl: ast::fn_decl) {
ibox(s, indent_unit);
print_arg_mode(s, x.mode);
word(s.s, x.ident);
if x.ty.node != ast::ty_infer {
word_space(s, ":");
print_type(s, x.ty);
}
end(s);
}
commasep(s, inconsistent, decl.inputs, print_arg);