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
Types in unions are (most of the time) ordered in the order they were encountered when checking your code. This order is not guaranteed (see #17944 and linked issues) and may change in every compiler version or by changing your code just a tiny bit.
In your example 3 is encountered first as the length of the tuple, then the numeric literals 1, 2 and 3 again.
If you change your code a bit, you get a different order:
version : ^4.0.3
you can find code here
or just look at this
I know it doesn't effect using, but I wonder the order mechanism
The text was updated successfully, but these errors were encountered: