Fix trait implementation check

This commit is contained in:
Shunsuke Shibayama 2022-10-28 18:03:35 +09:00
parent 3d35db4e3b
commit 968d3b5d2c
8 changed files with 147 additions and 67 deletions

View file

@ -2832,7 +2832,7 @@ impl Parser {
) -> ParseResult<LambdaSignature> {
debug_call_info!(self);
let sig = self
.convert_rhs_to_param(*tasc.expr, true)
.convert_rhs_to_param(Expr::TypeAsc(tasc), true)
.map_err(|_| self.stack_dec())?;
self.level -= 1;
Ok(LambdaSignature::new(