fixes ivar collection
This commit is contained in:
parent
d00fbb233e
commit
ea41f9cae9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user