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

# operator applied to array table is typed as boolean sometimes #1416

Open
dv-extrarius opened this issue Sep 15, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@dv-extrarius
Copy link

This code under strict gets an error on the line local numRanges: number = #ranges saying that boolean can't be converted to number

local function TestFunc(ranges: {number}): {number}
    if true then
        ranges = {} :: {number}
    end
    local numRanges: number = #ranges
    return ranges
end
@dv-extrarius dv-extrarius added the bug Something isn't working label Sep 15, 2024
@vegorov-rbx vegorov-rbx added the new solver This issue is specific to the new solver. label Sep 16, 2024
@aatxe aatxe self-assigned this Sep 17, 2024
@aatxe
Copy link
Collaborator

aatxe commented Sep 17, 2024

Thanks for the report. This should be fixed in the 644 release. Cheers! 😸

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

3 participants