Sha256: 58d59818247e18f064a3771b5106db7c174d7e14948f419b798286764c64d7f4

Contents?: true

Size: 493 Bytes

Versions: 48

Compression:

Stored size: 493 Bytes

Contents

# @type const A: Integer
# @type var x: String

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer
x = A

x = B

module X
  # @type const A: Integer

  def foo
    # @type var x: String

    # !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer
    x = A

    x = B
  end
end


# @type const Foo::Bar::Baz: Integer

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer
x = Foo::Bar::Baz

z = Foo
x = z::Bar::Baz
x = ::Foo::Bar::Baz

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
steep-0.39.0 smoke/const/a.rb
steep-0.38.0 smoke/const/a.rb
steep-0.37.0 smoke/const/a.rb
steep-0.36.0 smoke/const/a.rb
steep-0.35.0 smoke/const/a.rb
steep-0.34.0 smoke/const/a.rb
steep-0.33.0 smoke/const/a.rb
steep-0.32.0 smoke/const/a.rb
steep-0.31.1 smoke/const/a.rb
steep-0.31.0 smoke/const/a.rb
steep-0.30.0 smoke/const/a.rb
steep-0.29.0 smoke/const/a.rb
steep-0.28.0 smoke/const/a.rb
steep-0.27.0 smoke/const/a.rb
steep-0.25.0 smoke/const/a.rb
steep-0.24.0 smoke/const/a.rb
steep-0.23.0 smoke/const/a.rb
steep-0.22.0 smoke/const/a.rb
steep-0.21.0 smoke/const/a.rb
steep-0.20.0 smoke/const/a.rb