lib/steep/interface/builder.rb in steep-1.5.3 vs lib/steep/interface/builder.rb in steep-1.6.0.pre.1
- old
+ new
@@ -764,9 +764,18 @@
type: method_type.type.with(
return_type: AST::Types::Logic::ArgEqualsReceiver.new(location: method_type.type.return_type.location)
)
)
end
+ when :<, :<=
+ case defined_in
+ when RBS::BuiltinNames::Module.name
+ return method_type.with(
+ type: method_type.type.with(
+ return_type: AST::Types::Logic::ArgIsAncestor.new(location: method_type.type.return_type.location)
+ )
+ )
+ end
end
end
method_type
end