rename for_type to self_type
and split a base class off TypedMethod
This commit is contained in:
@ -63,8 +63,8 @@ module Risc
|
||||
in_test_vool("def meth; @ivar = 5; @ibar = 4;end")
|
||||
test = Parfait.object_space.get_class_by_name(:Test)
|
||||
method = test.instance_type.get_method(:meth)
|
||||
assert_equal 1, method.for_type.variable_index(:ivar)
|
||||
assert_equal 2, method.for_type.variable_index(:ibar)
|
||||
assert_equal 1, method.self_type.variable_index(:ivar)
|
||||
assert_equal 2, method.self_type.variable_index(:ibar)
|
||||
end
|
||||
def test_typed_method_has_one_local
|
||||
in_test_vool("def meth; local = 5 ; a = 6;end")
|
||||
|
Reference in New Issue
Block a user