fixes ivar collection
This commit is contained in:
parent
d00fbb233e
commit
ea41f9cae9
@ -12,5 +12,9 @@ module Vool
|
|||||||
class LocalAssignment < Assignment
|
class LocalAssignment < Assignment
|
||||||
end
|
end
|
||||||
class InstanceAssignment < Assignment
|
class InstanceAssignment < Assignment
|
||||||
|
# used to collect type information
|
||||||
|
def add_ivar( array )
|
||||||
|
array << @name
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -23,7 +23,7 @@ module Vool
|
|||||||
assert_equal :var , vars.first
|
assert_equal :var , vars.first
|
||||||
end
|
end
|
||||||
|
|
||||||
def ttest_assign_collect
|
def test_assign_collect
|
||||||
vars = compile( "@var = 5" )
|
vars = compile( "@var = 5" )
|
||||||
assert_equal :var , vars.first
|
assert_equal :var , vars.first
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user