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

New solver: Using the result of a type function that errors causes type inference to fail to complete #1510

Open
funwolf7 opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@funwolf7
Copy link

funwolf7 commented Nov 6, 2024

Any time the resulting type of a type function that should error due to invalid parameters gets used, it causes type inference to fail to complete. This also happens with user-defined type functions that error.

Examples:

local test = "a" + "b"
print(test.a)
type test = unm<unm<{}>>
type function test()
    error()
end
local test: test<>
test.a()
@funwolf7 funwolf7 added the bug Something isn't working label Nov 6, 2024
@aatxe aatxe added the new solver This issue is specific to the new solver. label Nov 10, 2024
@aatxe aatxe self-assigned this Nov 15, 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