lib/steep/interface/shape.rb in steep-1.9.0.dev.2 vs lib/steep/interface/shape.rb in steep-1.9.0
- old
+ new
@@ -123,10 +123,10 @@
def [](name)
return nil unless key?(name)
resolved_methods[name] ||= begin
- entry = methods[name]
+ entry = methods.fetch(name)
Entry.new(
method_name: name,
overloads: entry.overloads.map do |overload|
overload.subst(subst)
end,