Skip to content
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

Route:query() return values are not typed when using generalized iteration #5

Open
YetAnotherClown opened this issue Dec 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@YetAnotherClown
Copy link
Owner

This is a Luau bug, but since this affects Net this issue will serve as a guide for how to workaround this and provide information on it.
If you would like to track the Luau Issue, it is here luau-lang/luau#819.

In order to workaround this bug, you can do this when querying:

for pos, sender, str, num in route:query():__iter() do
     -- Do something
end

In the meantime, there is nothing we can do to fix this for Net, you will either have to use the workaround or wait until the new Luau Type Solver comes out.

@YetAnotherClown YetAnotherClown added the bug Something isn't working label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant