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.7.0 smoke/const/a.rb
steep-0.6.0 smoke/const/a.rb
steep-0.5.1 smoke/const/a.rb
steep-0.5.0 smoke/const/a.rb
steep-0.4.0 smoke/const/a.rb
steep-0.3.0 smoke/const/a.rb
steep-0.2.0 smoke/const/a.rb
steep-0.1.0 smoke/const/a.rb