Fix incorrect type checking of anonymous match expressions
This commit is contained in:
parent
2b7ae3eba3
commit
71912f8c65
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ std::tuple<ConstraintSet, Type*> Checker::inferExpr(TypeEnv& Env, Expression* Ex
|
|||
mergeTo(Out, ExprOut);
|
||||
Out.push_back(new CTypesEqual { ExprTy, Ty, Case->Expression });
|
||||
}
|
||||
if (E->Value) {
|
||||
if (!E->Value) {
|
||||
auto ParamTy = createTVar();
|
||||
Ty = new TFun(ParamTy, Ty);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue