Fix recursive macro statement expansion

This commit is contained in:
Edwin Cheng 2021-03-26 03:52:35 +08:00
parent 59fdd7c84c
commit 8ce15b02de
7 changed files with 119 additions and 70 deletions

View file

@ -767,6 +767,7 @@ impl<'a> InferenceContext<'a> {
None => self.table.new_float_var(),
},
},
Expr::MacroStmts { tail } => self.infer_expr(*tail, expected),
};
// use a new type variable if we got unknown here
let ty = self.insert_type_vars_shallow(ty);