Skip to content

Make resolution see member scope of K types#2

Merged
kyay10 merged 4 commits into
masterfrom
member-scope
Jan 27, 2026
Merged

Make resolution see member scope of K types#2
kyay10 merged 4 commits into
masterfrom
member-scope

Conversation

@kyay10
Copy link
Copy Markdown
Owner

@kyay10 kyay10 commented Jan 27, 2026

The type refiner we employ does not affect call resolution in one particular case: member functions (i.e. methods). That's because it uses the member scope of K (which is empty), and hence doesn't end up finding member methods for a type like K<Constructor<List<*>>, String>. This change makes it so that the member scope is calculated based on the type after applying K

JVM is going to make setting final fields impossible in the future, so we fall back to refining function calls
@kyay10 kyay10 merged commit e336cae into master Jan 27, 2026
1 check failed
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.

1 participant