Sha256: 4b9244a58b7c4e48220abb5751ea694a8108fa56b1ded82bc48f918b7c34d6ac

Contents?: true

Size: 321 Bytes

Versions: 16

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=(::Integer | ::String)
a = if z
      "foofoo"
    else
      3
    end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
steep-0.27.0 smoke/if/a.rb
steep-0.25.0 smoke/if/a.rb
steep-0.24.0 smoke/if/a.rb
steep-0.23.0 smoke/if/a.rb
steep-0.22.0 smoke/if/a.rb
steep-0.21.0 smoke/if/a.rb
steep-0.20.0 smoke/if/a.rb
steep-0.19.0 smoke/if/a.rb
steep-0.18.0 smoke/if/a.rb
steep-0.17.1 smoke/if/a.rb
steep-0.17.0 smoke/if/a.rb
steep-0.16.3 smoke/if/a.rb
steep-0.16.2 smoke/if/a.rb
steep-0.16.1 smoke/if/a.rb
steep-0.16.0 smoke/if/a.rb
steep-0.15.0 smoke/if/a.rb