aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/graph.go
AgeCommit message (Collapse)Author
2021-07-28[dev.typeparams] test/typeparam: gofmt -wMatthew Dempsky
We don't usually reformat the test directory, but all of the files in test/typeparam are syntactically valid. I suspect the misformattings here are because developers aren't re-installing gofmt with -tags=typeparams, not intentionally exercising non-standard formatting. Change-Id: I3767d480434c19225568f3c7d656dc8589197183 Reviewed-on: https://go-review.googlesource.com/c/go/+/338093 Trust: Matthew Dempsky <mdempsky@google.com> Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
2021-03-16cmd/compile: deal with comparable embedded in a constraintDan Scales
Ignore an embedded type in an interface which is the predeclared interface "comparable" (which currently can only be in a type constraint), since the name doesn't resolve and the "comparable" type doesn't have any relevant methods (for the purposes of the compiler). Added new test case graph.go that needs this fix. Change-Id: I2443d2c3dfeb9d0a78aaaaf91a2808ae2759d247 Reviewed-on: https://go-review.googlesource.com/c/go/+/301831 Trust: Dan Scales <danscales@google.com> Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>