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

slice == nil comparison #11

Open
DQNEO opened this issue Jul 25, 2020 · 1 comment
Open

slice == nil comparison #11

DQNEO opened this issue Jul 25, 2020 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@DQNEO
Copy link
Owner

DQNEO commented Jul 25, 2020

Currently in some cases slice == nil gives false even if slice is nil.

Expected results

when slice is nil,

expression value
slice == nil true
nil == slice true
slice =! nil false
nil != slice false

when slice is non-nil,

expression value
slice == nil false
nil == slice false
slice =! nil true
nil != slice true
@DQNEO DQNEO added the bug Something isn't working label Jul 25, 2020
@DQNEO DQNEO changed the title Enable slice == nil comparison slice == nil comparison Jan 20, 2021
@DQNEO
Copy link
Owner Author

DQNEO commented Jul 18, 2023

This case works accidentally :)

@DQNEO DQNEO closed this as completed Jul 18, 2023
@DQNEO DQNEO reopened this Aug 27, 2023
@DQNEO DQNEO added the good first issue Good for newcomers label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant