Sha256: 85a78da3efd588d2dcd11c26d0a7e953c59019feb682ec8279d156726980b159
Contents?: true
Size: 727 Bytes
Versions: 16
Compression:
Stored size: 727 Bytes
Contents
# @type var x: Integer | String | Symbol x = (_ = nil) case x when Integer, String # !expects NoMethodError: type=(::Integer | ::String), method=foobar x.foobar() end case x == 1 when Integer # !expects NoMethodError: type=(::Integer | ::String | ::Symbol), method=foobar x.foobar end case x when 1 # !expects NoMethodError: type=(::Integer | ::String | ::Symbol), method=foobar x.foobar end case x when String # !expects@+2 IncompatibleAnnotation: var_name=x, ::Integer <: ::String # @type var x: Integer x + 1 end case x when Object # !expects@+2 IncompatibleTypeCase: var_name=x, ::Object <: (::Integer | ::String | ::Symbol) # !expects NoMethodError: type=::Object, method=foobar x.foobar end
Version data entries
16 entries across 16 versions & 1 rubygems