]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix case where func-valued field of a generic type is called
authorDan Scales <danscales@google.com>
Sun, 14 Mar 2021 20:46:23 +0000 (13:46 -0700)
committerDan Scales <danscales@google.com>
Mon, 15 Mar 2021 20:29:11 +0000 (20:29 +0000)
commit96aecdcb36ad5240a9858f7f7d77ace30f2deaaa
treecf3c49cf8575bfe24eb7fae5b66220f274e6ba95
parentc2360956389a30a27407fb857fd4916f20f8dc01
cmd/compile: fix case where func-valued field of a generic type is called

Added test example orderedmap.go (binary search tree) that requires this
fix (calling function compare in _Map).

Also added new tests slices.go and metrics.go that just work.

Change-Id: Ifa5f42ab6eee9aa54c40f0eca19e00a87f8f608a
Reviewed-on: https://go-review.googlesource.com/c/go/+/301829
Trust: Dan Scales <danscales@google.com>
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/metrics.go [new file with mode: 0644]
test/typeparam/orderedmap.go [new file with mode: 0644]
test/typeparam/slices.go [new file with mode: 0644]