diff options
-rw-r--r-- | src/repl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl.cpp b/src/repl.cpp index a94e51c..d66fe36 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -64,7 +64,7 @@ callPrintCollect(CEnv& cenv, CFunc f, AST* result, AType* resultT, bool execute) cenv.out << cenv.engine()->call(cenv, f, resultT); // Print type (if applicable) - if (resultT->head()->to<const ASymbol*>()->cppstr != "Nothing") + if (resultT->head()->str() != "Nothing") cenv.out << " : " << resultT << endl; Object::pool.collect(Object::pool.roots()); |