Fixing self type creation

When compiling a classs, we pick up all instance variables.
Now that conditions and returns can be calls, that was broken, now fixed
This commit is contained in:
2019-08-17 15:58:27 +03:00
parent d3f3c91ae5
commit ae7f31381b
6 changed files with 165 additions and 18 deletions

View File

@ -23,7 +23,7 @@ module Vool
def each(&block)
block.call(self)
block.call(@condition)
@condition.each(&block)
@hoisted.each(&block) if @hoisted
@body.each(&block)
end