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
If we change String *: EmptyTuple to Tuple1[String], it will compile without problem.
The problem is that according to the current specification, String *: EmptyTuple does not qualify as a product pattern, as it does not contain selectors _1, ..., _N.
The question is:
Whether we should support String *: EmptyTuple?
How to change the specification?
One particular concern is that making *: a special case seems to cancel the past efforts to make pattern match more generic.