fix local assignment

was missing a method that got lost in copy/paste
also renaming to get guard to pick up tests
This commit is contained in:
Torsten Ruger
2018-07-20 14:16:29 +03:00
parent d14eca3e70
commit f4402ba30f
6 changed files with 6 additions and 5 deletions

View File

@ -8,6 +8,11 @@ module Vool
from = @value.slot_definition(compiler)
return chain_assign( Mom::SlotLoad.new(to,from) , compiler)
end
def chain_assign(assign , compiler)
return assign unless @value.is_a?(SendStatement)
@value.to_mom(compiler) << assign
end
end
end