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

parameterized type aliases break expected types on table literals #1615

Open
jackdotink opened this issue Jan 16, 2025 · 0 comments
Open

parameterized type aliases break expected types on table literals #1615

jackdotink opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@jackdotink
Copy link
Contributor

Similar to #1596.

type Pair<Node> = { sep: {}? }

local a: Pair<{}> = {
	sep = nil, -- Type Error!
}

Note that this type error is fixed by removing the parameters from the Pair type.

@jackdotink jackdotink added the bug Something isn't working label Jan 16, 2025
@aatxe aatxe added the new solver This issue is specific to the new solver. label Jan 21, 2025
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