Sha256: 6c4415f8dd6b13f1ea47216ff660b2de84eb3c21a17dddfba2d2b73fcafe24fd

Contents?: true

Size: 394 Bytes

Versions: 32

Compression:

Stored size: 394 Bytes

Contents

# @type var a: Array[Integer]

a = []
a[1] = 3

# !expects* UnresolvedOverloading: receiver=::Array[::Integer], method_name=[]=,
a[2] = "foo"

# @type var i: Integer
i = a[0]

# @type var s: String
# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer
s = a[1]


b = ["a", "b", "c"]

s = b[0]
# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::String
i = b[1]

Version data entries

32 entries across 32 versions & 1 rubygems

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