aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Scales <danscales@google.com>2021-07-25 18:27:15 -0700
committerDan Scales <danscales@google.com>2021-07-28 03:04:12 +0000
commite00a6ec084605b773cdb87971de5b5536c0cc13e (patch)
tree2899d6b3578ee2ee51eb25e689196d4f2325e789 /test
parentc751e2e6ba30fc319c93b9cfe207dc7d1b48c3fb (diff)
downloadgo-e00a6ec084605b773cdb87971de5b5536c0cc13e.tar.gz
go-e00a6ec084605b773cdb87971de5b5536c0cc13e.zip
[dev.typeparams] cmd/compile: mark methods of instantiated interface types as used
Fix the cons.go missing method error. Mark all the methods of instantiated interface types as used. We could try to record all the exact methods used for generic interface types, but for now, just mark all the methods as used so that their methods are not dead-code eliminated. Change-Id: I35685eda82476244371379b97691a1b8506ef0f7 Reviewed-on: https://go-review.googlesource.com/c/go/+/337349 Trust: Dan Scales <danscales@google.com> Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
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 edf26a5d82..4971043ab6 100644
--- a/test/run.go
+++ b/test/run.go
@@ -2181,7 +2181,6 @@ var g3Failures = setOf(
"fixedbugs/issue30862.go", // -G=3 doesn't handle //go:nointerface
- "typeparam/cons.go", // causes an unreachable method
"typeparam/nested.go", // -G=3 doesn't support function-local types with generics
"typeparam/mdempsky/4.go", // -G=3 can't export functions with labeled breaks in loops