-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Lua generators use None instead of nil #6720
Labels
breaking change
Used to mark a PR or issue that changes our public APIs.
component: generators
good first issue
issue: bug
Describes why the code or behaviour is wrong
size: small
Bugs that can be picked up and completed in 1-3 days
Comments
Oops, the second example also outputs 0, however, nil should still be used though as None can be assigned to while nil can't be. nil is also a special type in Lua for no data |
13 tasks
@BeksOmega Can I be assigned? |
@neerajkumarc Go for it =) |
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking change
Used to mark a PR or issue that changes our public APIs.
component: generators
good first issue
issue: bug
Describes why the code or behaviour is wrong
size: small
Bugs that can be picked up and completed in 1-3 days
This causes

this generates
list = {None, None, None} print(#list)
printing 0Expected Behavior:
The generator should produce
list = {nil, nil, nil} print(#list)
printing 3To Fix
'None'
to'nil'
.The text was updated successfully, but these errors were encountered: