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.39.0 smoke/integer/a.rb
steep-0.38.0 smoke/integer/a.rb
steep-0.37.0 smoke/integer/a.rb
steep-0.36.0 smoke/integer/a.rb
steep-0.35.0 smoke/integer/a.rb
steep-0.34.0 smoke/integer/a.rb
steep-0.33.0 smoke/integer/a.rb
steep-0.32.0 smoke/integer/a.rb
steep-0.31.1 smoke/integer/a.rb
steep-0.31.0 smoke/integer/a.rb
steep-0.30.0 smoke/integer/a.rb
steep-0.29.0 smoke/integer/a.rb
steep-0.28.0 smoke/integer/a.rb
steep-0.27.0 smoke/integer/a.rb
steep-0.25.0 smoke/integer/a.rb
steep-0.24.0 smoke/integer/a.rb
steep-0.23.0 smoke/integer/a.rb
steep-0.22.0 smoke/integer/a.rb
steep-0.21.0 smoke/integer/a.rb
steep-0.20.0 smoke/integer/a.rb