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
Thanks for the report. This is an annoying case, because variables are supposed to be zero'd by default, but both 0 and -1 are invalid values for a function variable. It's way too late to fix the fact that we picked -1 for INVALID_FUNCTION.
I'm tempted to make the comparison implicitly check for both. Until I can finish the array refactoring PR, it's probably the easier route.
When initializing a variable of type
Function
in an enum struct, they seem to incorrectly default to 0.I believe the Function type in this case should default to -1 (INVALID_FUNCTION) instead.
The following code results in:
Is null
: 1Is INVALID_FUNCTION
: 0The text was updated successfully, but these errors were encountered: