fixes ivar collection

This commit is contained in:
Torsten Ruger 2017-04-08 12:18:10 +03:00
parent d00fbb233e
commit ea41f9cae9
2 changed files with 5 additions and 1 deletions

View File

@ -12,5 +12,9 @@ module Vool
class LocalAssignment < Assignment
end
class InstanceAssignment < Assignment
# used to collect type information
def add_ivar( array )
array << @name
end
end
end

View File

@ -23,7 +23,7 @@ module Vool
assert_equal :var , vars.first
end
def ttest_assign_collect
def test_assign_collect
vars = compile( "@var = 5" )
assert_equal :var , vars.first
end