Lower generator expression to HIR

This commit is contained in:
Ryo Yoshida 2022-09-05 22:43:26 +09:00
parent 6dfd8aebdf
commit ba64c93a44
No known key found for this signature in database
GPG key ID: E25698A930586171
4 changed files with 43 additions and 5 deletions

View file

@ -216,7 +216,7 @@ impl<'a> InferenceContext<'a> {
self.diverges = Diverges::Maybe;
TyBuilder::unit()
}
Expr::Closure { body, args, ret_type, arg_types } => {
Expr::Closure { body, args, ret_type, arg_types, closure_kind: _ } => {
assert_eq!(args.len(), arg_types.len());
let mut sig_tys = Vec::new();