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

Support printing of literal types as type parameters #2726

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

cb372
Copy link
Contributor

@cb372 cb372 commented Apr 11, 2022

Fixes #2725

This innocent-looking one-line change fixes my issue (by allowing literals to be treated as types by the printer), but I'm a little worried it might have some other impact I'm not aware of.

@kitbellew kitbellew requested review from dos65 and tgodzik April 11, 2022 17:00
Copy link
Contributor

@kitbellew kitbellew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems consistent with

@branch trait Lit extends Term with Pat with Type {

@tgodzik @dos65 thoughts?

Copy link
Member

@dos65 dos65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kitbellew LGTM. Mima check pass so I think everything is fine

@kitbellew kitbellew merged commit e7be818 into scalameta:main Apr 11, 2022
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.

InvariantFailedException when printing a type with a literal type parameter
3 participants