aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/structinit.dir/a.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2021-12-15 13:04:54 -0800
committerKeith Randall <khr@golang.org>2021-12-16 00:33:58 +0000
commitd107aa2cd1fdc596b9275a127e6c35cc5f8d32bb (patch)
treecea2411f97ea73d29d3eddc4c17a6e49a8319cd4 /test/typeparam/structinit.dir/a.go
parent6e7c6912186b6c91fff332ef473409a8e960c519 (diff)
downloadgo-d107aa2cd1fdc596b9275a127e6c35cc5f8d32bb.tar.xz
cmd/compile: upgrade ssa to do (int or float) -> complex
Generic instantiations can produce conversions from constant literal ints or floats to complex values. We could constant literals during instantiation, but it is just as easy to upgrade the code generator to do the conversions. Fixes #50193 Change-Id: I24bdc09226c8e868f6282e0e4057ba6c3ad5c41a Reviewed-on: https://go-review.googlesource.com/c/go/+/372514 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Trust: Dan Scales <danscales@google.com> Reviewed-by: Dan Scales <danscales@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'test/typeparam/structinit.dir/a.go')
0 files changed, 0 insertions, 0 deletions