Skip to content

Commit

Permalink
modify benchmark to rtype using annotation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sputnikgugja committed Apr 2, 2016
1 parent cfd41b5 commit ab0d3ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/benchmark.rb
Expand Up @@ -34,17 +34,17 @@ def args(a, b, c, d)
pure_obj = PureTest.new

class RtypeTest
rtype :sum, [Numeric, Numeric] => Numeric
rtype [Numeric, Numeric] => Numeric
def sum(x, y)
x + y
end

rtype :mul, [:to_i, :to_i] => Numeric
rtype [:to_i, :to_i] => Numeric
def mul(x, y)
x * y
end

rtype :args, [Integer, Numeric, String, :to_i] => Any
rtype [Integer, Numeric, String, :to_i] => Any
def args(a, b, c, d)
end
end
Expand Down

0 comments on commit ab0d3ac

Please sign in to comment.