push the name down into callable

blocks need a name too
if just for debug, and stacks
This commit is contained in:
Torsten Ruger
2018-07-30 10:21:43 +03:00
parent 1cb07a4164
commit 4055709529
8 changed files with 25 additions and 18 deletions

View File

@ -14,7 +14,7 @@ module Parfait
end
def foo_method( for_class = :Try)
args = Parfait::Type.for_hash( @try_class , { bar: :Integer})
::Parfait::CallableMethod.new( @space.get_type_by_class_name(for_class) , :foo , args,empty_frame)
::Parfait::CallableMethod.new( :foo ,@space.get_type_by_class_name(for_class) , args,empty_frame)
end
def add_foo_to( clazz = :Try )
foo = foo_method( clazz )