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
cmd/go2go: orderedmap.NewOrdered returns -1 for less than and greater than cases #41574
Labels
Comments
ALTree
changed the title
Go 2 orderedmap.NewOrdered returns -1 for less than and greater than cases
cmd/go2go: orderedmap.NewOrdered returns -1 for less than and greater than cases
Sep 23, 2020
ALTree
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Sep 23, 2020
Thanks. Yes, that looks like a typo. |
griesemer
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Sep 23, 2020
Change https://golang.org/cl/256718 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Sep 24, 2020
Fixes #41574. Change-Id: I885f72bd68798b4ccdc539b062afa0d36debce4e Reviewed-on: https://go-review.googlesource.com/c/go/+/256718 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
Fixed in dev.go2go repo. Thanks for reporting. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Hi folks,
I was talking a look at the nice code examples for generics in Go 2 path and found a small big in one of them.
What version of Go are you using (go version)? Go 2
What operating system and processor architecture are you using? N/A
What did you do? Read the code at
/src/cmd/go2go/testdata/go2path/src/
What did you expect to see? Correct examples on how to use generics.
What did you see instead? One bug in
orderedmap.NewOrdered
.go/src/cmd/go2go/testdata/go2path/src/orderedmap/orderedmap.go2
Lines 42 to 49 in e9e897e
This probably shouldn't be negative 1:
go/src/cmd/go2go/testdata/go2path/src/orderedmap/orderedmap.go2
Line 48 in e9e897e
The text was updated successfully, but these errors were encountered: