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

Missing parentheses in a pretty-printed type #659

Open
jiribenes opened this issue Oct 31, 2024 · 0 comments
Open

Missing parentheses in a pretty-printed type #659

jiribenes opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jiribenes
Copy link
Contributor

jiribenes commented Oct 31, 2024

The suggested type (Int => Exception at {exc} at {io} / {}) cannot be annotated, one can only write the parenthesised version: (Int => Exception at {exc}) at {io}.
Screenshot 2024-10-31 at 15 28 32


Relevant code

Parser

private def valueType2(boxedAllowed: Boolean): ValueType = nonterminal {

Pretty printer

case BoxedType(tpe, capture) => toDoc(tpe) <+> "at" <+> toDoc(capture)

@jiribenes jiribenes added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant