]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: delay transformAssign if lhs/rhs have typeparam
authorDan Scales <danscales@google.com>
Thu, 2 Sep 2021 15:47:40 +0000 (08:47 -0700)
committerDan Scales <danscales@google.com>
Fri, 17 Sep 2021 23:04:15 +0000 (23:04 +0000)
commit07b30a4f77cf89a283c45c338f0cfcb68e15aab1
treea155c135609b9931d3507b46646ea5ffe4a89402
parentc10b98022027ce584b0571359439fae41a721dd3
cmd/compile: delay transformAssign if lhs/rhs have typeparam

This also requires that we sometimes delay transformSelect(), if the
assignments in the Comm part of the select have not been transformed.

Fixes #48137

Change-Id: I163aa1f999d1e63616280dca807561b12b2aa779
Reviewed-on: https://go-review.googlesource.com/c/go/+/347915
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>
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/noder/stmt.go
test/typeparam/issue48137.go [new file with mode: 0644]