]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: introduce named gcshape types
authorKeith Randall <khr@golang.org>
Thu, 10 Jun 2021 02:30:16 +0000 (19:30 -0700)
committerKeith Randall <khr@golang.org>
Wed, 21 Jul 2021 21:04:15 +0000 (21:04 +0000)
commita7a17f0ca86d252dc1ef20b5852c352ade5f8610
treefdc726eb6a687dfb988e927fdef467cd393bfaa1
parent897970688b326f7baa8ad8e3330fb552d94b0014
[dev.typeparams] cmd/compile: introduce named gcshape types

Still 1-1 with real types, but now with their own names!

Shape types are implicitly convertible to (and convertible from)
the types they represent.

Change-Id: I0133a8d8fbeb369380574b075a32b3c987e314d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/335170
Run-TryBot: Keith Randall <khr@golang.org>
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/noder/types.go
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/types/identity.go
src/cmd/compile/internal/types/type.go
src/cmd/internal/obj/objfile.go