more test working

operator wip
This commit is contained in:
Torsten Ruger
2015-09-20 16:52:26 +03:00
parent 77f0a08060
commit 5f628744d6
10 changed files with 42 additions and 49 deletions

View File

@ -6,7 +6,7 @@ module Virtual
# from may be a Constant (Object,Integer,String,Class)
class Set < Instruction
def initialize from , to
raise "no to slot #{to}" unless to.is_a? Slot
raise "no to slot #{to.inspect}" unless to.is_a? Slot
@from = from
@to = to
end