You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContractError:
It looks like you are trying to use pattern-matching, but
multiple definitions for function '<function name here>' have the same
contract for input parameters:
None => String
None => String
if I do something like:
module Foo
Contract None => String
def foo
...
class Bar
include Foo
def foo
The text was updated successfully, but these errors were encountered:
indigoviolet
changed the title
Overriding a function from an included module with contracts leads to errors`
Overriding a function from an included module with contracts leads to errors
Nov 24, 2016
@egonSchiele I am currently working on a Rails project where the same ContractError will appear, but only when running RSpec tests via Spring preloader. So far I have not been able to track down the cause. I just need to comment out a few contracts to get RSpec to run. As the project is proprietary, I can't post the code here and so far I have not worked out a minimal example, but if you have any idea what role Spring is playing here, then maybe we could find one faster.
if I do something like:
The text was updated successfully, but these errors were encountered: