You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a.go2:9: instantiate୦୦A୦int redeclared in this block
previous declaration at a.go2:9
Both b.go and c.go define func instantiate୦୦A୦int(m [](int), i int) { ... }
The text was updated successfully, but these errors were encountered:
cagedmantis
changed the title
cmd/go2go: Calling a generic function with the same type argument(s) in two different files generates duplicate code
cmd/go2go: calling a generic function with the same type argument(s) in two different files generates duplicate code
Jun 22, 2020
Move tracking of instantiations from translator to Importer,
so that we can track all instantiations within a package
to avoid duplicates.
Fixes#39749
Change-Id: If6cd5bcdc6e19c2d6481e62a6187ddf7f4fac72a
Reviewed-on: https://go-review.googlesource.com/c/go/+/239337
Reviewed-by: Ian Lance Taylor <iant@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran
go tool go2go build
on https://gitlab.com/firelizzard/go-iter/-/tree/master/issues/i1What did you expect to see?
A successful build
What did you see instead?
Both
b.go
andc.go
definefunc instantiate୦୦A୦int(m [](int), i int) { ... }
The text was updated successfully, but these errors were encountered: