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:
2020-03-09 17:56:13 +02:00
parent 8119030ed2
commit c9fedec230
4 changed files with 44 additions and 27 deletions

View File

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