]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: stenciled conversions might be NOPs
authorKeith Randall <khr@golang.org>
Thu, 9 Sep 2021 15:09:57 +0000 (08:09 -0700)
committerKeith Randall <khr@golang.org>
Thu, 9 Sep 2021 15:34:08 +0000 (15:34 +0000)
commit19457a58e565ff5b480c3806fe02fbc7ccdf32f0
tree4698c72635ef6c62e1696810aef4ab506af3909d
parenta295b3cec80b048048bf51a0462764dc337ca6ef
cmd/compile: stenciled conversions might be NOPs

A generic conversion might be required for when converting T->interface{}.
When stenciled with T=interface{}, then that conversion doesn't need
to do anything.

Fixes #48276

Change-Id: Ife65d01c99fbd0895cb7eec79df9e93e752b1fa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/348736
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue48276a.go [new file with mode: 0644]
test/typeparam/issue48276a.out [new file with mode: 0644]
test/typeparam/issue48276b.go [new file with mode: 0644]