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

Preserve type parameters in function-typed "this." and "super." params. #1520

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

munificent
Copy link
Member

If you have a parameter that:

  • uses "this." or "super.",
  • and also uses the old function-typed formal parameter syntax,
  • and also is a generic function...

then the short style formatter would drop the type parameters on the floor. The tall style already does the right thing.

Fix the short style and add regression tests for both.

Fix #1321.

If you have a parameter that:

- uses "this." or "super.",
- and also uses the old function-typed formal parameter syntax,
- and also is a generic function...

then the short style formatter would drop the type parameters on the
floor. The tall style already does the right thing.

Fix the short style and add regression tests for both.

Fix #1321.
@munificent munificent merged commit 8c0e44e into main Aug 9, 2024
7 checks passed
@munificent munificent deleted the fix-1321 branch August 9, 2024 21:55
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.

Lost type arguments on super calls
2 participants