egonSchiele / contracts.ruby

Contracts for Ruby.
http://egonschiele.github.com/contracts.ruby
BSD 2-Clause "Simplified" License
1.44k stars 82 forks source link

method redefined warnings #286

Open tiagoefmoraes opened 6 years ago

tiagoefmoraes commented 6 years ago

When running ruby -w -e 'require "contracts"; class Foo; include Contracts; end' or ruby -w -e 'require "contracts"; class Foo; include Contracts::Core; end'

I get this warnings

/home/tiago/.gem/ruby/2.4.3/gems/contracts-0.16.0/lib/contracts/core.rb:21: warning: method redefined; discarding old functype
/home/tiago/.gem/ruby/2.4.3/gems/contracts-0.16.0/lib/contracts/core.rb:47: warning: previous definition of functype was here
grosser commented 5 years ago

getting the same :/ /cc @egonSchiele