lib/rbs/definition_builder.rb in rbs-1.1.1 vs lib/rbs/definition_builder.rb in rbs-1.2.0

- old
+ new

@@ -744,9 +744,23 @@ else implemented_in end ) end + + defs = method.defs.map do |defn| + defn.update( + type: sub.empty? ? defn.type : defn.type.sub(sub), + implemented_in: case implemented_in + when :keep + defn.implemented_in + when nil + nil + else + implemented_in + end + ) + end end super_method = methods[name] methods[name] = Definition::Method.new(