Merge pull request #358 from bjh21/bjh21-extra-tests
[jackhill/mal.git] / scala / step6_file.scala
index 47d68fb..b91a9b1 100644 (file)
@@ -31,6 +31,9 @@ object step6_file {
 
     // apply list
     ast.asInstanceOf[MalList].value match {
+      case Nil => {
+        return ast
+      }
       case Symbol("def!") :: a1 :: a2 :: Nil => {
         return env.set(a1.asInstanceOf[Symbol], EVAL(a2, env))
       }