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 generic type return type by adding explicit cast #279

Open
isc30 opened this issue Dec 2, 2020 · 1 comment
Open

Fix generic type return type by adding explicit cast #279

isc30 opened this issue Dec 2, 2020 · 1 comment

Comments

@isc30
Copy link
Collaborator

isc30 commented Dec 2, 2020

this crashes

Max<Person>(a0, a1, p => p.Age).Age

it can be fixed by the lowerer transforming it to:

((Person)Max<Person>(a0, a1, p => p.Age)).Age
@isc30
Copy link
Collaborator Author

isc30 commented Mar 2, 2021

also, while doing this, fix the missing using for generic lowerer

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

No branches or pull requests

1 participant