lib/rbs/errors.rb in rbs-1.0.2 vs lib/rbs/errors.rb in rbs-1.0.3

- old
+ new

@@ -38,9 +38,12 @@ class RecursiveAncestorError < StandardError attr_reader :ancestors attr_reader :location def initialize(ancestors:, location:) + @ancestors = ancestors + @location = location + names = ancestors.map do |ancestor| case ancestor when Definition::Ancestor::Singleton "singleton(#{ancestor.name})" when Definition::Ancestor::Instance