Sha256: 7ece12965de2f0e19aca8922a8105c87288e2f67007877d68d6716aaf245f7fd

Contents?: true

Size: 406 Bytes

Versions: 13

Compression:

Stored size: 406 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

a = case
    # !expects ArgumentTypeMismatch: receiver=::Integer, expected=::Integer, actual=::String
    when 1+"a"
      (_ = nil)
    end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
steep-0.11.1 smoke/case/a.rb
steep-0.11.0 smoke/case/a.rb
steep-0.10.0 smoke/case/a.rb
steep-0.9.0 smoke/case/a.rb
steep-0.8.2 smoke/case/a.rb
steep-0.8.1 smoke/case/a.rb
steep-0.8.0 smoke/case/a.rb
steep-0.7.1 smoke/case/a.rb
steep-0.7.0 smoke/case/a.rb
steep-0.6.0 smoke/case/a.rb
steep-0.5.1 smoke/case/a.rb
steep-0.5.0 smoke/case/a.rb
steep-0.4.0 smoke/case/a.rb