]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make sure that the names created for instantiated type are the same
authorkorzhao <korzhao95@gmail.com>
Mon, 6 Sep 2021 13:08:05 +0000 (21:08 +0800)
committerDan Scales <danscales@google.com>
Tue, 7 Sep 2021 03:56:13 +0000 (03:56 +0000)
commit6226020c2f713e4545c73d56dc05676b642c9bc7
tree98336f9659c9dd9a088940dcefaedc5b777d5be3
parenta1938435d6361dcbc93a15ce0ace28748a45b85d
cmd/compile: make sure that the names created for instantiated type are the same

Now we have two functions that create names for instantiated types.
They are inconsistent when dealing with byte/rune type.

This CL makes instTypeName2 reuse the code of typecheck.InstTypeName

Fixes #48198

Change-Id: I4c216b532cba6618ef9b63fd0b76e8f1c0ed7a75
Reviewed-on: https://go-review.googlesource.com/c/go/+/347491
Reviewed-by: Dan Scales <danscales@google.com>
Trust: Dan Scales <danscales@google.com>
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/types.go
test/typeparam/issue48198.go [new file with mode: 0644]