-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types a and Player cannot be compared because they do not have the same metatable #83
Comments
This is because the typechecker actually resolves Its a bit strange that the generic type cannot be compared. We could make the warning disappear by removing the metatable from Player, but it currently causes issues as we it no longer type checks against comparing with other types of no metatable (string/number etc.) |
Unlike in Studio, we use the autocomplete typechecker to power hover information, which is why Luau LSP's hover information is typically better than Studio, but it doesn't exactly represent what the diagnostic system sees |
No warnings occur in Studio.
The text was updated successfully, but these errors were encountered: