aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/constrain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp
index d0490bf..94a27c3 100644
--- a/src/constrain.cpp
+++ b/src/constrain.cpp
@@ -146,6 +146,7 @@ ADef::constrain(TEnv& tenv, Constraints& c) const throw(Error)
tenv.def(sym, tvar);
body()->constrain(tenv, c);
c.constrain(tenv, sym, tvar);
+ c.constrain(tenv, this, tenv.named("Nothing"));
}
void