1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:51:23 -07:00
go/test/typeparam
Dan Scales fdf3496fcc [dev.typeparams] cmd/compile: make type conversions by type parameters work
When doing a type conversion using a type param, delay the
transformation to OCONV/OCONVNOP until stenciling, since the nodes
created depend on the actual type.

Re-enable the fact.go test.

Change-Id: I3d5861aab3dd0e781d767f67435afaf951dfe451
Reviewed-on: https://go-review.googlesource.com/c/go/+/290752
Trust: Dan Scales <danscales@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-02-10 03:33:05 +00:00
..
fact.go [dev.typeparams] cmd/compile: make type conversions by type parameters work 2021-02-10 03:33:05 +00:00
importtest.go [dev.typeparams] cmd/compile: use existing findpkg algorithm when importing through types2 2020-11-11 01:11:43 +00:00
map.go [dev.typeparams] cmd/compile: handle calling a method on a type param in stenciling 2021-02-10 01:44:48 +00:00
min.go [dev.typeparams] cmd/compile: add stenciling of simple generic functions 2021-02-05 16:40:12 +00:00
smoketest.go
stringer.go [dev.typeparams] cmd/compile: handle calling a method on a type param in stenciling 2021-02-10 01:44:48 +00:00
sum.go [dev.typeparams] cmd/compile: allow generic funcs to call other generic funcs for stenciling 2021-02-08 19:32:55 +00:00
tparam1.go [dev.typeparams] cmd/compile/internal/types2: set compiler error message for undeclared variable 2020-12-02 04:48:13 +00:00