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, agreed the error message could definitely be better here, but an empty typepack is indeed not at the type boolean? (you can observe the difference by select('#', ...) on the result of your two versions of RandBool).
The new type solver throws type error with unclear message when return type is optional and the return keyword is used without a value.
However, this does not occur when the return keyword is used with
nil
.The text was updated successfully, but these errors were encountered: