lib/rbs/environment.rb in rbs-2.8.4 vs lib/rbs/environment.rb in rbs-3.0.0.dev.1
- old
+ new
@@ -363,14 +363,16 @@
case member
when AST::Members::MethodDefinition
AST::Members::MethodDefinition.new(
name: member.name,
kind: member.kind,
- types: member.types.map do |type|
- resolve_method_type(resolver, type, context: context)
+ overloads: member.overloads.map do |overload|
+ overload.update(
+ method_type: resolve_method_type(resolver, overload.method_type, context: context)
+ )
end,
comment: member.comment,
- overload: member.overload?,
+ overloading: member.overloading?,
annotations: member.annotations,
location: member.location,
visibility: member.visibility
)
when AST::Members::AttrAccessor