lib/rbs/environment.rb in rbs-0.6.0 vs lib/rbs/environment.rb in rbs-0.7.0
- old
+ new
@@ -124,10 +124,10 @@
end
end
def cache_name(cache, name:, decl:, outer:)
if cache.key?(name)
- raise DuplicatedDeclarationError.new(name, decl, cache[name])
+ raise DuplicatedDeclarationError.new(name, decl, cache[name].decl)
end
cache[name] = SingleEntry.new(name: name, decl: decl, outer: outer)
end