salmanahmad / dog

The Dog Programming Language
http://www.dog-lang.org
Apache License 2.0
0 stars 0 forks source link

"on statement" with empty body crashes compiler #54

Closed ef4 closed 11 years ago

ef4 commented 11 years ago

An on statement with an empty body like this:

on thing do
end

causes a confusing NullPointerException in the compiler, because we end up with a null reference in our parse tree.