Sha256: ccc8beac277257ce35ea7d0bf57251120f8ad78b02d448ce254d505cd9ae8d37

Contents?: true

Size: 462 Bytes

Versions: 19

Compression:

Stored size: 462 Bytes

Contents

# @type var a: Integer

# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=(::Array[::String] | ::Integer | ::String | nil)
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

19 entries across 19 versions & 1 rubygems

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