HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #358 from bjh21/bjh21-extra-tests
[jackhill/mal.git]
/
scala
/
step6_file.scala
diff --git
a/scala/step6_file.scala
b/scala/step6_file.scala
index
47d68fb
..
b91a9b1
100644
(file)
--- a/
scala/step6_file.scala
+++ b/
scala/step6_file.scala
@@
-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))
}