]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: implement generic .(T) operations
authorKeith Randall <khr@golang.org>
Tue, 27 Jul 2021 00:41:02 +0000 (17:41 -0700)
committerKeith Randall <khr@golang.org>
Thu, 29 Jul 2021 17:15:21 +0000 (17:15 +0000)
commitf4f503e0a3ac7fbf9f57c7fe34cecc8df383e334
tree397dedaa4096fc324d57593584145d4daf9fdc51
parent4a47e40a14c2051656d4ff4b768fe21a5fc308fa
[dev.typeparams] cmd/compile: implement generic .(T) operations

Introduce new dynamic dottype operations which take a dynamic
instead of static type to convert to.

Change-Id: I5824a1fea056fe811b1226ce059e1e8da1baa335
Reviewed-on: https://go-review.googlesource.com/c/go/+/337609
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/escape/expr.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/node_gen.go
src/cmd/compile/internal/ir/op_string.go
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/walk/expr.go
src/cmd/compile/internal/walk/order.go
test/typeparam/dottype.go
test/typeparam/dottype.out