small rename
This commit is contained in:
@ -8,7 +8,7 @@ class TestMeta < MiniTest::Test
|
||||
end
|
||||
|
||||
def foo_method for_class = :Try
|
||||
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
|
||||
args = Parfait::Type.for_hash( @try , { bar: :Integer})
|
||||
::Parfait::TypedMethod.new @space.get_class_by_name(for_class).instance_type , :foo , args
|
||||
end
|
||||
|
||||
|
@ -4,7 +4,7 @@ class TestMethod < MiniTest::Test
|
||||
|
||||
def setup
|
||||
obj = Register.machine.space.get_class_by_name(:Object).instance_type
|
||||
args = Parfait::Type.new_for_hash( obj , { bar: :Integer , foo: :Type})
|
||||
args = Parfait::Type.for_hash( obj , { bar: :Integer , foo: :Type})
|
||||
@method = ::Parfait::TypedMethod.new obj , :meth , args
|
||||
@method.add_local :local_bar , :Integer
|
||||
@method.add_local :local_foo , :Type
|
||||
|
Reference in New Issue
Block a user