Skip to content

Commit

Permalink
Merge pull request #583 from ruby/error
Browse files Browse the repository at this point in the history
Setup #ancestors and #location of RecursiveAncestorError
  • Loading branch information
soutaro committed Jan 28, 2021
2 parents f1d895b + b58f2d2 commit 9ff68ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rbs/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class RecursiveAncestorError < StandardError
attr_reader :location

def initialize(ancestors:, location:)
@ancestors = ancestors
@location = location

names = ancestors.map do |ancestor|
case ancestor
when Definition::Ancestor::Singleton
Expand Down

0 comments on commit 9ff68ed

Please sign in to comment.