aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Scales <danscales@google.com>2021-07-07 12:03:41 -0700
committerDan Scales <danscales@google.com>2021-07-07 22:57:23 +0000
commit60cb2cab97ca6a28dcb4a58776ed85f840f534d5 (patch)
tree5b5bcfe088089e1624eb13ebe7210ae95df2319a /test
parent85267f402c3ba7ec91a3cf5e4e4a763fd1137deb (diff)
downloadgo-60cb2cab97ca6a28dcb4a58776ed85f840f534d5.tar.gz
go-60cb2cab97ca6a28dcb4a58776ed85f840f534d5.zip
[dev.typeparams] cmd/compile: fix bug with types2.Instantiate with interface type param
types2.subst has an assertion that check is non-nil, but which breaks Instantiate() with an interface type param (used when re-importing instatiated type to types2). But this check was added when Instantiate() was added, and things seem to work fine when the assertion is removed. Fixes test/typeparam/mdempsky/7.go. Change-Id: I4980f0b202a0b310a3c91a7a87f97576f54911de Reviewed-on: https://go-review.googlesource.com/c/go/+/333155 Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Dan Scales <danscales@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/run.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/run.go b/test/run.go
index 713e2006dc..0251dc1c6a 100644
--- a/test/run.go
+++ b/test/run.go
@@ -2209,7 +2209,6 @@ var g3Failures = setOf(
"typeparam/mdempsky/3.go",
"typeparam/mdempsky/4.go",
"typeparam/mdempsky/5.go",
- "typeparam/mdempsky/7.go",
"typeparam/mdempsky/9.go",
"typeparam/mdempsky/11.go",
"typeparam/mdempsky/12.go",