This commit is contained in:
Gwenhael Le Moine 2021-12-15 13:33:40 +01:00
parent 59c40c5bf9
commit 080bac161f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

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