|
@@ -82,7 +82,7 @@ public class ParsedMatchExpression extends ParsedExpression {
|
82
|
82
|
LambdaClosure closure = new LambdaClosure();
|
83
|
83
|
StatementScope innerScope = new LambdaScope(scope, closure, header);
|
84
|
84
|
Statement contents = body.compile(innerScope, header);
|
85
|
|
- return new MatchExpression.Case(null, new FunctionExpression(name.position, scope.getTypeRegistry().getFunction(header), closure, contents));
|
|
85
|
+ return new MatchExpression.Case(null, new FunctionExpression(null, scope.getTypeRegistry().getFunction(header), closure, contents));
|
86
|
86
|
}
|
87
|
87
|
|
88
|
88
|
SwitchValue switchValue = name.compileToSwitchValue(valueType, scope.withHint(valueType));
|