Skip to content

Conversation

@apiology
Copy link
Owner

@apiology apiology commented Jul 9, 2025

@apiology apiology changed the title 2025 07 02 2025-07-02 dev branch Jul 9, 2025
@apiology apiology force-pushed the 2025-07-02 branch 2 times, most recently from f20aa85 to dcb6671 Compare July 11, 2025 19:41
The object convention pins currently take priority before all other
sources of pins.

This is probably appropriate for the directly defined methods of the
class itself, but others methods included by references should come
later in the list.  This allows a user to call get_method_stack, take
the first pin in the list, and use typify() to walk the superclasses
and define the correct types.

This behavior also makes resolution of ActiveRecord pins from its RBS
collection better today in practice - there are lots of cases where
the method pulled in from a reference is auto-generated (say,
'ActiveRecord::Transactions::ClassMethods#after_commit'), but someone
has manually overridden the type by defining an RBS method in
ActiveRecord::Base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants