aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 16d766f..5e2741c 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -138,7 +138,7 @@ compile(CEnv& cenv, const Code& parsed, Code& defs, bool& hasMain, const char* m
Code exprs;
for (auto i : stages.back()) {
const ATuple* call = i->to_tuple();
- if (call && (is_form(i, "def-type")
+ if (call && (is_form(i, "define-type")
|| (is_form(i, "define") && is_form(call->frrst(), "lambda")))) {
resp_flatten(cenv, defs, call);
} else if (call && is_form(i, "prot")) {