small rename

This commit is contained in:
Torsten Ruger
2016-12-19 14:16:10 +02:00
parent 107e3e6d58
commit af9fed863f
5 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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