Sha256: 6ee3cabf3e964219a5882294e65e27530465ff03e33261c068297adcd1c0ea28

Contents?: true

Size: 501 Bytes

Versions: 54

Compression:

Stored size: 501 Bytes

Contents

# @type var a: Integer

a = begin
      'foo'
    rescue
      1
    end

# @type var b: Integer

b = 'foo' rescue 1

# @type var c: Integer

c = begin
      'foo'
    rescue RuntimeError
      :sym
    rescue StandardError
      1
    end

# @type var e: Integer

e = begin
      'foo'
    rescue RuntimeError
      :sym
    rescue StandardError
      1
    else
      [1]
    end

# @type method foo: (String) -> String

def foo(a)
  10
rescue
  'foo'
end

# when empty
begin
rescue
else
ensure
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
steep-1.6.0 smoke/rescue/a.rb
steep-1.6.0.pre.4 smoke/rescue/a.rb
steep-1.6.0.pre.3 smoke/rescue/a.rb
steep-1.6.0.pre.2 smoke/rescue/a.rb
steep-1.6.0.pre.1 smoke/rescue/a.rb
steep-1.5.3 smoke/rescue/a.rb
steep-1.5.2 smoke/rescue/a.rb
steep-1.5.1 smoke/rescue/a.rb
steep-1.5.0 smoke/rescue/a.rb
steep-1.5.0.pre.6 smoke/rescue/a.rb
steep-1.5.0.pre.5 smoke/rescue/a.rb
steep-1.5.0.pre.4 smoke/rescue/a.rb
steep-1.5.0.pre.3 smoke/rescue/a.rb
steep-1.5.0.pre.2 smoke/rescue/a.rb
steep-1.5.0.pre.1 smoke/rescue/a.rb
steep-1.4.0 smoke/rescue/a.rb
steep-1.4.0.dev.5 smoke/rescue/a.rb
steep-1.4.0.dev.4 smoke/rescue/a.rb
steep-1.4.0.dev.3 smoke/rescue/a.rb
steep-1.3.2 smoke/rescue/a.rb