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

Some more typechecking bugs #215

Open
dibyendumajumdar opened this issue Feb 20, 2021 · 0 comments
Open

Some more typechecking bugs #215

dibyendumajumdar opened this issue Feb 20, 2021 · 0 comments
Labels

Comments

@dibyendumajumdar
Copy link
Owner

dibyendumajumdar commented Feb 20, 2021

function x(a: integer, b: integer[])
        local a1 = a[0]
end

It should not be possible to index an variable that is marked as integer. This will fail at runtime except if someone sets a meta-table on integer.

But following should fail:

function x(a: integer)
        local a1:integer = a[0]
end
dibyendumajumdar added a commit that referenced this issue Feb 20, 2021
… as it means we miss out checking scenario where v->k == VINDEXED.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant