aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/nested.out
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-06-11 01:09:47 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-06-16 21:38:50 +0000
commit1ba2074440a9b82b6e39c42f40b9d04858aa6c75 (patch)
treedb34ccf45a9638bbd9b3ec4ceb4fec59fd99111c /test/typeparam/nested.out
parentdd95a4e3dbe1e060b59840efd7311e8d5e82c08c (diff)
downloadgo-1ba2074440a9b82b6e39c42f40b9d04858aa6c75.tar.gz
go-1ba2074440a9b82b6e39c42f40b9d04858aa6c75.zip
[dev.typeparams] cmd/compile/internal/types2: support local defined types
This CL changes types2's instance hashing logic to include position information for function-scope defined types as disambiguation. This isn't ideal, but it worked for getting nested.go passing. Updates #46592. Change-Id: Id83ba0001f44af69b81260306cc8b05e44fc4f09 Reviewed-on: https://go-review.googlesource.com/c/go/+/327170 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Trust: Matthew Dempsky <mdempsky@google.com> Trust: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'test/typeparam/nested.out')
-rw-r--r--test/typeparam/nested.out4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/typeparam/nested.out b/test/typeparam/nested.out
new file mode 100644
index 0000000000..9110518248
--- /dev/null
+++ b/test/typeparam/nested.out
@@ -0,0 +1,4 @@
+0,3: main.T·2[int;int]
+4,7: main.T·2[int;"".U·3[int;int]]
+22,23: main.T·2["".Int;"".Int]
+26,27: main.T·2["".Int;"".U·3["".Int;"".Int]]