Sha256: 12c81497294e29ea9f824773f26fcca09768fa6ac6f2f49365e93bb8523b83e4

Contents?: true

Size: 738 Bytes

Versions: 32

Compression:

Stored size: 738 Bytes

Contents

# @type var hash: Hash[Symbol, String]

a = [1]

# !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::String
hash = a.each.with_object("") do |x, y|
  # !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::Integer
  hash = x
  # !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::String
  hash = y
end

# !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::Array[::Integer]
hash = a.each.with_index do |x, y|
  # !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::Integer
  hash = x
  # !expects IncompatibleAssignment: lhs_type=::Hash[::Symbol, ::String], rhs_type=::Integer
  hash = y
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
steep-0.19.0 smoke/enumerator/a.rb
steep-0.18.0 smoke/enumerator/a.rb
steep-0.17.1 smoke/enumerator/a.rb
steep-0.17.0 smoke/enumerator/a.rb
steep-0.16.3 smoke/enumerator/a.rb
steep-0.16.2 smoke/enumerator/a.rb
steep-0.16.1 smoke/enumerator/a.rb
steep-0.16.0 smoke/enumerator/a.rb
steep-0.15.0 smoke/enumerator/a.rb
steep-0.14.0 smoke/enumerator/a.rb
steep-0.13.0 smoke/enumerator/a.rb
steep-0.12.0 smoke/enumerator/a.rb