Fix lambdas not being correctly generated for match-expressions

This commit is contained in:
Sam Vervaeck 2022-09-16 11:57:45 +02:00
parent 14c7ce6db5
commit a94b05df61

View file

@ -1246,7 +1246,7 @@ export class Checker {
); );
this.popContext(newContext); this.popContext(newContext);
} }
if (node === null) { if (node.expression === null) {
resultType = new TArrow([ exprType ], resultType); resultType = new TArrow([ exprType ], resultType);
} }
return resultType; return resultType;