aboutsummaryrefslogtreecommitdiffstats
path: root/src/constrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constrain.cpp')
-rw-r--r--src/constrain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp
index e6e81a3..baa4ca8 100644
--- a/src/constrain.cpp
+++ b/src/constrain.cpp
@@ -173,7 +173,7 @@ constrain_fn(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error)
for (++i; i != call->end(); ++i) {
const AST* exp = *i;
const ATuple* call = exp->to_tuple();
- if (call && is_form(call, "def")) {
+ if (call && is_form(call, "define")) {
const ASymbol* sym = call->list_ref(1)->as_symbol();
THROW_IF(defs.count(sym) != 0, call->loc,
(format("`%1%' defined twice") % sym->str()).str());
@@ -429,11 +429,11 @@ constrain_list(TEnv& tenv, Constraints& c, const ATuple* tup) throw(Error)
constrain_cons(tenv, c, tup);
else if (form == ".")
constrain_dot(tenv, c, tup);
- else if (form == "def")
+ else if (form == "define")
constrain_def(tenv, c, tup);
else if (form == "def-type")
constrain_def_type(tenv, c, tup);
- else if (form == "fn")
+ else if (form == "lambda")
constrain_fn(tenv, c, tup);
else if (form == "if")
constrain_if(tenv, c, tup);