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

text/template: eq nil 0 returns bad comparison #45982

Closed
rsc opened this issue May 6, 2021 · 1 comment
Closed

text/template: eq nil 0 returns bad comparison #45982

rsc opened this issue May 6, 2021 · 1 comment
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented May 6, 2021

Using the built-in eq to compare a nil interface and a non-nil value fails but should not.
(It is reasonable to check given x interface{} whether x == 1.)

@rsc rsc added this to the Go1.17 milestone May 6, 2021
@rsc rsc self-assigned this May 6, 2021
@gopherbot
Copy link

Change https://golang.org/cl/317470 mentions this issue: text/template: fix type bug in eq

@golang golang locked and limited conversation to collaborators May 6, 2022
@rsc rsc removed their assignment Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants