Skip to content

Missing parens in pretty printer for types #933

@brianhuffman

Description

@brianhuffman

Apparently we got the precedences wrong in the pretty printer for Cryptol types:

Cryptol> :t [zero : Z 5]
[zero : Z 5] : [1]Z 5

This should be [1](Z 5) instead of [1]Z 5, because [1]Z 5 doesn't parse:

Cryptol> [zero] : [1]Z 5

Parse error at <interactive>:1:15,
  unexpected: 5

Metadata

Metadata

Assignees

Labels

UXIssues related to the user experience (e.g., improved error messages)bugSomething not working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions