fix resolve issue
the typed method has to be created in the to_pafait pass for it to work correctly, ie for the sends to have something to call also means that when during compilation creating (raising?) a method, not only vool. but also callable has to be created
This commit is contained in:
@ -24,5 +24,9 @@ module Vool
|
||||
clazz = @clazz.to_parfait
|
||||
assert_equal Parfait::VoolMethod , clazz.get_instance_method(:main).class
|
||||
end
|
||||
def test_type_method
|
||||
clazz = @clazz.to_parfait
|
||||
assert_equal Parfait::CallableMethod , clazz.instance_type.get_method(:main).class
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user