Sha256: 0165a6376d2416444913d7f38738e5b9b0e5af6e758b5adf49461d3547e85f77
Contents?: true
Size: 780 Bytes
Versions: 32
Compression:
Stored size: 780 Bytes
Contents
# @type var x: Numeric x = _ = 1 integer_1 = Integer(x) # !expects NoMethodError: type=::Integer, method=foo integer_1.foo integer_2 = Integer("1") # !expects NoMethodError: type=::Integer, method=foo integer_2.foo class WithToInt def to_int; 1; end end integer_3 = Integer(WithToInt.new) # !expects NoMethodError: type=::Integer, method=foo integer_3.foo class WithToI def to_i; 1; end end integer_4 = Integer(WithToI.new) # !expects NoMethodError: type=::Integer, method=foo integer_4.foo integer_5 = Integer("10", 2) # !expects NoMethodError: type=::Integer, method=foo integer_5.foo # !expects* UnresolvedOverloading: receiver=::Object, method_name=Integer, Integer(Object.new) # !expects* UnresolvedOverloading: receiver=::Object, method_name=Integer, Integer(nil)
Version data entries
32 entries across 32 versions & 1 rubygems