Sha256: f9eea3b3af4fd1c1511c92625863218e632a52c081efbea1de477e76a2f64d8b

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

module TestApp
  class TracepointBug
    SomeError = Class.new(StandardError)

    # @return [Integer]
    def method1
      method2
    rescue SomeError => error
      foo # resolve ambiguous raise state
      return 1
    end

    def foo
      1
    end

    def method2
      raise SomeError
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yardcheck-0.0.3 test_app/lib/test_app/tracepoint_bug.rb
yardcheck-0.0.2 test_app/lib/test_app/tracepoint_bug.rb