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
+4
View File
@@ -1368,6 +1368,10 @@ fn print_arg(s: ps, x: ast::arg) {
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);