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

Annotate overloaded Lua functions #71

Closed
matshou opened this issue Mar 3, 2021 · 1 comment
Closed

Annotate overloaded Lua functions #71

matshou opened this issue Mar 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@matshou
Copy link
Member

matshou commented Mar 3, 2021

Standard Lua language does not support overloaded functions because it does not differentiate between object types passed as function arguments. This is why EmmyLua only displays the first/last overloaded function found.

Since Java very often uses overloaded methods, a lot of compiled Lua methods will be shadowed. However EmmyLua has introduced @overloaded annotation in version 1.1.9 which should solve this problem.

@matshou matshou added the enhancement New feature or request label Mar 3, 2021
@matshou
Copy link
Member Author

matshou commented Mar 3, 2021

This issue was originally reported as cocolabs/pz-zmod#27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant