Skip to content

Improve math.abs annotation #1961

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

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

C3pa
Copy link
Contributor

@C3pa C3pa commented Mar 1, 2023

This brings it in line with math.max, and max.min. This change allows the type inference to correctly infer the returned type if math.abs is passed an integer as an argument.

This brings it in line with math.max, and max.min. This change allows the type inference to correctly infer the returned type if math.abs is passed an integer as an argument.
@sumneko sumneko merged commit 36f4f92 into LuaLS:master Mar 2, 2023
@sumneko
Copy link
Collaborator

sumneko commented Mar 2, 2023

Thank you!

@C3pa C3pa deleted the math.abs-annotation branch March 18, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants