egonSchiele / contracts.ruby

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

Wrapping &blocks only when there is a Func check. (bug 278) #281

Closed md-work closed 6 years ago

md-work commented 6 years ago

See issue 278: https://github.com/egonSchiele/contracts.ruby/issues/278#issuecomment-351428779

egonSchiele commented 6 years ago

This is causing infinite recursion, maybe because of the is_a? call?

md-work commented 6 years ago

Fixed the problem in a new request (I couldn't update this pull request): https://github.com/egonSchiele/contracts.ruby/pull/283

Somehow Travis CI didn't like that I reassigned the blk variable.