add a way to bend the type for register_value
specifically for factories, where we know the type of next_object even it is not specified
This commit is contained in:
@ -45,5 +45,10 @@ module Risc
|
||||
# works with nil as compiler, because extra is used
|
||||
assert_equal :Message , @r1.get_new_left(:arguments , nil).type.class_name
|
||||
end
|
||||
def test_type_setting
|
||||
reg = @r0.known_type(:Integer)
|
||||
assert_equal Parfait::Type , reg.type.class
|
||||
assert_equal "Integer_Type" , reg.type.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user