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

Literal integers are not boxed to execute methods #364

Open
lvcabral opened this issue May 2, 2024 · 0 comments
Open

Literal integers are not boxed to execute methods #364

lvcabral opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lvcabral
Copy link
Owner

lvcabral commented May 2, 2024

The autoboxing works with String but not with Integer:

image

It seems it is being interpreter as a float 1. and not as an integer with the method, because this works:

print 1..toStr()
1

in Roku it works:
image

@lvcabral lvcabral added the bug Something isn't working label May 2, 2024
@lvcabral lvcabral changed the title Literal numbers are not boxed to execute methods Literal integers are not boxed to execute methods May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant