Sha256: 442c780490b2ed8d08fe5564c7ab839de26763d695a9661edbd144e12c8b90ee

Contents?: true

Size: 346 Bytes

Versions: 48

Compression:

Stored size: 346 Bytes

Contents

# @type var foo: Foo
foo = (_ = nil)

# @type var integer: Integer

# Foo#f returns String because overridden
# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::String
integer = foo.f()

# String#f returns Object because Object(X)#f is used
# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::Object
integer = "".f()

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
steep-0.7.0 smoke/extension/b.rb
steep-0.6.0 smoke/extension/b.rb
steep-0.5.1 smoke/extension/b.rb
steep-0.5.0 smoke/extension/b.rb
steep-0.4.0 smoke/extension/b.rb
steep-0.3.0 smoke/extension/b.rb
steep-0.2.0 smoke/extension/b.rb
steep-0.1.0 smoke/extension/b.rb