Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type hierarchy for local variables and fields defined as method references #832

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trancexpress
Copy link
Contributor

Fixes: #830

What it does

How to test

Author checklist

@trancexpress
Copy link
Contributor Author

trancexpress commented Mar 13, 2023

So far a copy-pasted mess. If we were to go with this (essentially mirror what is done for lambdas), we would have to pull a lot of copy-pasted code to base classes (shared between lambdas and method references).

Also right now the type hierarchy lists the method reference in the same way as a lambda (() -> {...} TestInterface), I've not checked where this is coming from.

Hopefully there is something smarter we can do here...

@trancexpress trancexpress changed the title WIP Fill type hierarchy for local variables and fields defined as method references Mar 13, 2023
@trancexpress trancexpress changed the title Fill type hierarchy for local variables and fields defined as method references Fix type hierarchy for local variables and fields defined as method references Mar 13, 2023
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.

Incomplete type hierarchy when using method reference
1 participant