Skip to content

Print type parameters of operators when not inferrable from arguments#966

Open
strub wants to merge 1 commit intomainfrom
fix-457
Open

Print type parameters of operators when not inferrable from arguments#966
strub wants to merge 1 commit intomainfrom
fix-457

Conversation

@strub
Copy link
Copy Markdown
Member

@strub strub commented Apr 5, 2026

When an operator has type parameters that cannot be inferred from the types of its provided arguments, the pretty-printer now automatically displays the type instantiation (e.g., card<:bool> instead of card).

A PP:showtvi flag (toggled via pragma +PP:showtvi) forces display of type parameters even when they are inferrable.

When an operator has type parameters that cannot be inferred from the
types of its provided arguments, the pretty-printer now automatically
displays the type instantiation (e.g., `card<:bool>` instead of `card`).

A `PP:showtvi` flag (toggled via `pragma +PP:showtvi`) forces display
of type parameters even when they are inferrable.
@strub strub self-assigned this Apr 5, 2026
@strub strub linked an issue Apr 5, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printing type parameters of constants

1 participant