You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hover with mouse in Metals-enabled VS Code at the word guard in the main function. You will see a type hint of this method
def guard(a: Tail[(1, 2, 3)]): Unit
This is not ideal because the type contains unevaluated type matches like Tuple.Tail that depend on entirely known types.
Describe the solution you'd like
I would like to see this type simplified to
def guard(a: (2, 3)): Unit
Describe alternatives you've considered
I do not know of alternative solutions to simplifying such expressions.
Additional context
No response
Search terms
type hint, type match, simplification
The text was updated successfully, but these errors were encountered:
belamenso
changed the title
Type hints should evaluate type matches inside
Type hints should evaluate type matches when arguments are literal types
Jan 10, 2025
belamenso
changed the title
Type hints should evaluate type matches when arguments are literal types
Type hints should evaluate type matches when arguments are known
Jan 10, 2025
belamenso
changed the title
Type hints should evaluate type matches when arguments are known
Type hints should evaluate type matches with known arguments
Jan 10, 2025
Is your feature request related to a problem? Please describe.
Scala 3.6.2. Consider this code
Hover with mouse in Metals-enabled VS Code at the word
guard
in the main function. You will see a type hint of this methodThis is not ideal because the type contains unevaluated type matches like
Tuple.Tail
that depend on entirely known types.Describe the solution you'd like
I would like to see this type simplified to
Describe alternatives you've considered
I do not know of alternative solutions to simplifying such expressions.
Additional context
No response
Search terms
type hint, type match, simplification
The text was updated successfully, but these errors were encountered: