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.19.0 smoke/const/a.rb
steep-0.18.0 smoke/const/a.rb
steep-0.17.1 smoke/const/a.rb
steep-0.17.0 smoke/const/a.rb
steep-0.16.3 smoke/const/a.rb
steep-0.16.2 smoke/const/a.rb
steep-0.16.1 smoke/const/a.rb
steep-0.16.0 smoke/const/a.rb
steep-0.15.0 smoke/const/a.rb
steep-0.14.0 smoke/const/a.rb
steep-0.13.0 smoke/const/a.rb
steep-0.12.0 smoke/const/a.rb
steep-0.11.1 smoke/const/a.rb
steep-0.11.0 smoke/const/a.rb
steep-0.10.0 smoke/const/a.rb
steep-0.9.0 smoke/const/a.rb
steep-0.8.2 smoke/const/a.rb
steep-0.8.1 smoke/const/a.rb
steep-0.8.0 smoke/const/a.rb
steep-0.7.1 smoke/const/a.rb