Fix lambdas not being correctly generated for match-expressions
This commit is contained in:
parent
14c7ce6db5
commit
a94b05df61
1 changed files with 1 additions and 1 deletions
|
@ -1246,7 +1246,7 @@ export class Checker {
|
|||
);
|
||||
this.popContext(newContext);
|
||||
}
|
||||
if (node === null) {
|
||||
if (node.expression === null) {
|
||||
resultType = new TArrow([ exprType ], resultType);
|
||||
}
|
||||
return resultType;
|
||||
|
|
Loading…
Reference in a new issue