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

optional arities not checked in assignments #788

Open
hishamhm opened this issue Aug 21, 2024 · 1 comment
Open

optional arities not checked in assignments #788

hishamhm opened this issue Aug 21, 2024 · 1 comment
Labels
semantics Unexpected or unsound behaviors

Comments

@hishamhm
Copy link
Member

hishamhm commented Aug 21, 2024

when you assign a function it does not check that the question marks match (example in the LuaRocks repo: sort_by in util.sortedpairs = core.sortedpairs)

Edit: as shown in #822 this also applies to functions in record field declarations vs. implementations. There's a good test case there!

@hishamhm hishamhm added the semantics Unexpected or unsound behaviors label Aug 21, 2024
@hishamhm
Copy link
Member Author

Need to think a bit more about how strict we want this to be.

@hishamhm hishamhm changed the title [next] optional arities not checked in assignments optional arities not checked in assignments Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semantics Unexpected or unsound behaviors
Projects
None yet
Development

No branches or pull requests

1 participant