Sha256: a57d4257648a36b966b1bafa9390885d573880c914bdcc442441c8141631e0c2
Contents?: true
Size: 535 Bytes
Versions: 16
Compression:
Stored size: 535 Bytes
Contents
class A # @implements X # !expects*@+2 MethodDefinitionWithOverloading: method=foo, types= # !expects MethodBodyTypeMismatch: method=foo, expected=(::Integer | ::String), actual=::Symbol def foo(x) :foobar end end class B # @implements X # @type method foo: (::String | ::Integer) -> any def foo(x) 3 end end class C # @implements X # @type method foo: (Symbol) -> Symbol # !expects IncompatibleMethodTypeAnnotation: interface_method=::X.foo, annotation_method=foo def foo(x) :foo end end
Version data entries
16 entries across 16 versions & 1 rubygems