This commit is contained in:
Andrew Morris
2023-03-23 21:14:00 +11:00
parent b95c32f45b
commit 1d1c4496b3
4 changed files with 85 additions and 40 deletions

View File

@@ -1206,7 +1206,7 @@ impl<'a> ExpressionCompiler<'a> {
match &qfn.functionish {
Functionish::Fn(fn_) => fn_.span,
Functionish::Arrow(arrow) => arrow.span,
Functionish::Constructor(_, constructor) => constructor.span,
Functionish::Constructor(_, _, constructor) => constructor.span,
},
&qfn.definition_pointer,
&qfn.capture_params,
@@ -1362,7 +1362,7 @@ impl<'a> ExpressionCompiler<'a> {
match &qfn.functionish {
Functionish::Fn(fn_) => fn_.span,
Functionish::Arrow(arrow) => arrow.span,
Functionish::Constructor(_, constructor) => constructor.span,
Functionish::Constructor(_, _, constructor) => constructor.span,
},
&qfn.definition_pointer,
&qfn.capture_params,