Sha256: ee4813189fb733fb399869318c7540e5f7886c8af0fb41834a3f946c56cfb6b6

Contents?: true

Size: 321 Bytes

Versions: 13

Compression:

Stored size: 321 Bytes

Contents

# @type var a: String

x = y = z = (_ = nil)

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=(::Symbol | nil)
a = if x
      :foo
    end

if y
  :foo
else
  "baz"
end

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=(::String | ::Integer)
a = if z
      "foofoo"
    else
      3
    end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
steep-0.39.0 smoke/if/a.rb
steep-0.38.0 smoke/if/a.rb
steep-0.37.0 smoke/if/a.rb
steep-0.36.0 smoke/if/a.rb
steep-0.35.0 smoke/if/a.rb
steep-0.34.0 smoke/if/a.rb
steep-0.33.0 smoke/if/a.rb
steep-0.32.0 smoke/if/a.rb
steep-0.31.1 smoke/if/a.rb
steep-0.31.0 smoke/if/a.rb
steep-0.30.0 smoke/if/a.rb
steep-0.29.0 smoke/if/a.rb
steep-0.28.0 smoke/if/a.rb