aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index bca6037..fc7b6ec 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -133,7 +133,8 @@ repl(CEnv& cenv)
cenv.out << "?";
cenv.engine()->eraseFunction(cenv, f);
}
- cenv.out << " : " << cenv.type(body) << endl;
+ if (bodyT->at(0)->to<const ASymbol*>()->cppstr != "Nothing")
+ cenv.out << " : " << cenv.type(body) << endl;
// Add definitions as GC roots
if (body->to<ADef*>())