Commit 4a4261f0 authored by Sebastian Biewer's avatar Sebastian Biewer
Browse files

Fixes Redmine 259

parent 6f8d0026
......@@ -189,6 +189,8 @@ class PCProgram extends PCNode
catch e
if e and e.wholeFile?
PCErrorList.push e
else
throw e
toString: -> (o._toString("") for o in @children).join("\n")
......@@ -1961,7 +1963,7 @@ class PCForStmt extends PCNode # Add PCForUpdate class?
# Collects complete environment for type checking
_collectEnvironment: (env) ->
env.openEnvironment(@)
@init._collectEnvironment(env)
@init._collectEnvironment(env) if @init
@body._collectEnvironment(env)
env.closeEnvironment()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment