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
So it wouldn't be wrong to reject the code (with a proper error message instead of a crash, of course). You can use a boolean match instead of a product match to handle the arity-0 case.
But also, why not simply allow the arity-0 case? It seems harmless to allow it as far as I can see, and allowing it would be more uniform. (And might assist e.g. a code generator, which currently would need to handle the 0 case specially.)
#14029 just does the minimal fix to prevent the crash, leaving the question open of whether the 0-arity case could or should be supported in the future.
Compiler version
Minimized code
Output
The text was updated successfully, but these errors were encountered: