Sha256: 1f5307064d110169763fec8186fc7692cc0d6986a1ecc73ec7ea6d793c3c63f8
Contents?: true
Size: 672 Bytes
Versions: 16
Compression:
Stored size: 672 Bytes
Contents
class A # @type instance: A # @type module: A.class # A#foo is defined and the implementation is compatible. def foo(x) x end # A#bar is defined but the implementation is incompatible. # !expects MethodArityMismatch: method=bar def bar(y) y end # Object#to_s is defined but the implementation is incompatible. # !expects MethodBodyTypeMismatch: method=to_s, expected=::String, actual=::Integer def to_s 3 end # No method definition given via signature, there is no type error. def to_str 5 end # !expects MethodBodyTypeMismatch: method=self.baz, expected=::Integer, actual=::String def self.baz "baz" end end
Version data entries
16 entries across 16 versions & 1 rubygems