From 9ebe6eb5b7c0f358957249149a34bec8e9883a47 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 6 Aug 2015 18:28:40 +0300 Subject: [PATCH] move to clss names as types so as not to mix ruby class names into parfait code --- lib/register/builtin/integer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/register/builtin/integer.rb b/lib/register/builtin/integer.rb index bd80baac..07b080c2 100644 --- a/lib/register/builtin/integer.rb +++ b/lib/register/builtin/integer.rb @@ -4,7 +4,7 @@ module Register module Integer module ClassMethods def plus c - plus_function = Virtual::MethodSource.create_method(:Integer,:plus , [Virtual::Integer] ) + plus_function = Virtual::MethodSource.create_method(:Integer,:plus , [:Integer] ) plus_function.source.return_type = Virtual::Integer plus_function.source.receiver = Virtual::Integer plus_function.source.add_code Register::OperatorInstruction.new( plus_function, :add , 0 , 0 )