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

Version Path
steep-0.19.0 smoke/integer/a.rb
steep-0.18.0 smoke/integer/a.rb
steep-0.17.1 smoke/integer/a.rb
steep-0.17.0 smoke/integer/a.rb
steep-0.16.3 smoke/integer/a.rb
steep-0.16.2 smoke/integer/a.rb
steep-0.16.1 smoke/integer/a.rb
steep-0.16.0 smoke/integer/a.rb
steep-0.15.0 smoke/integer/a.rb
steep-0.14.0 smoke/integer/a.rb
steep-0.13.0 smoke/integer/a.rb
steep-0.12.0 smoke/integer/a.rb