Sha256: 5524bb7038c3098f7ef2e44c1b652635384f5185e3e7cceefd593352c0a21750

Contents?: true

Size: 462 Bytes

Versions: 13

Compression:

Stored size: 462 Bytes

Contents

# @type var a: Integer

# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=(::Integer | ::Array[::String] | nil | ::String)
a = case 1
    when 2
      1
    when 0, 100
      ["String"]
    when 3
      nil
    when 4
    else
      "string"
    end

# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=(::Integer | nil)
a = case
    # !expects* UnresolvedOverloading: receiver=::Integer, method_name=+,
    when 1+"a"
      30
    end

Version data entries

13 entries across 13 versions & 1 rubygems

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