diff options
Diffstat (limited to 'src/constrain.cpp')
-rw-r--r-- | src/constrain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp index 7db25fa..0581115 100644 --- a/src/constrain.cpp +++ b/src/constrain.cpp @@ -163,7 +163,8 @@ ADef::constrain(TEnv& tenv, Constraints& c) const AType* tvar = tenv.var(at(2)); tenv.def(sym, make_pair(const_cast<AST*>(at(2)), tvar)); at(2)->constrain(tenv, c); - c.constrain(tenv, this, tvar); + c.constrain(tenv, at(1), tvar); + c.constrain(tenv, this, tenv.named("Nothing")); } void |