summaryrefslogtreecommitdiff
path: root/test/typeparam/issue46461b.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-09-09 11:17:39 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-09-09 19:37:25 +0000
commitfb84e99eb76615f63fc2d6bc93c244a84d6e9c22 (patch)
tree79d0ade36b6d269fe3e6a3c7bd3534f506f497b7 /test/typeparam/issue46461b.go
parentb9e1a24581b6282ee930a50bbe498d24ef77f486 (diff)
downloadgo-git-fb84e99eb76615f63fc2d6bc93c244a84d6e9c22.tar.gz
test: add compiler regress tests for #46461
gri@ reports that types2 now correctly handles when type parameters recursively refer back to the parameterized type, so we might as well add tests to exercise that. Unified IR also correctly handles importing and exporting these types, but -G=3 currently does not. Updates #46461. Change-Id: I272102aa08c40c980b9aeeca9f834291dfbbcc3e Reviewed-on: https://go-review.googlesource.com/c/go/+/348738 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'test/typeparam/issue46461b.go')
-rw-r--r--test/typeparam/issue46461b.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/typeparam/issue46461b.go b/test/typeparam/issue46461b.go
new file mode 100644
index 0000000000..87b4ff46c1
--- /dev/null
+++ b/test/typeparam/issue46461b.go
@@ -0,0 +1,7 @@
+// compiledir -G=3
+
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package ignored