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

For loop variable types not inferred from generic iterator with new type solver #1270

Open
Ketasaja opened this issue May 26, 2024 · 0 comments
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@Ketasaja
Copy link

Ketasaja commented May 26, 2024

--!strict
local i: {number} = {}

for j, k in next, i do -- j has type `K`, k has type `V`
end

Tested on 0.627.

@Ketasaja Ketasaja added the bug Something isn't working label May 26, 2024
@alexmccord alexmccord added the new solver This issue is specific to the new solver. label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new solver This issue is specific to the new solver.
Development

No branches or pull requests

2 participants