Skip to content

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

@YetAnotherClown

Description

@YetAnotherClown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions