Fix fold bug on expr_bind.

This commit is contained in:
Graydon Hoare 2011-01-03 18:22:27 -08:00
parent 019095c9e6
commit 0040a31076

View file

@ -444,6 +444,9 @@ fn fold_expr[ENV](&ENV env, ast_fold[ENV] fld, &@expr e) -> @expr {
let vec[option.t[@ast.expr]] aargs_opt = vec();
for (option.t[@ast.expr] t_opt in args_opt) {
alt (t_opt) {
case (none[@ast.expr]) {
aargs_opt += none[@ast.expr];
}
case (some[@ast.expr](?e)) {
aargs_opt += vec(some(fold_expr(env_, fld, e)));
}