logic
This commit is contained in:
parent
59c40c5bf9
commit
080bac161f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module Rpl
|
|||
needs.each do |need|
|
||||
elt = stack.pop
|
||||
|
||||
raise ArgumentError, "Type Error, needed #{need} got #{elt[:type]}" if need != :any && !need.include?( elt[:type] )
|
||||
raise ArgumentError, "Type Error, needed #{need} got #{elt[:type]}" unless need == :any || need.include?( elt[:type] )
|
||||
|
||||
args << elt
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue