diff --git a/lib/rbs/errors.rb b/lib/rbs/errors.rb index 81739af14..dbffbab6b 100644 --- a/lib/rbs/errors.rb +++ b/lib/rbs/errors.rb @@ -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