]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: cleanup wrapper code for generics
authorDan Scales <danscales@google.com>
Thu, 5 Aug 2021 17:17:40 +0000 (10:17 -0700)
committerDan Scales <danscales@google.com>
Fri, 6 Aug 2021 19:33:52 +0000 (19:33 +0000)
commit110343e4a2a953a581e34e91e51cef08856b0b0a
tree3d99c74bb672e034fceea06f9fb229a25f527135
parent5e33d11e1051734b2495021aa64ed9f47fbae87e
[dev.typeparams] cmd/compile: cleanup wrapper code for generics

Simple change - added some comments, but also removed some TODO comments
which are now done or no longer a question. Cleaned up the initial check
for generic methods.

The one remaining TODO that really needs to be done is generating
dictionary wrappers for any methods involving embedded fields. Given we
are not doing this, I think this would only affect if a struct with an
embedded field with methods was converted to an interface containing the
embedded method, and then the method was called via that interface.

Change-Id: I6a8a2885de33ad60b313c1899b659daef7550dfb
Reviewed-on: https://go-review.googlesource.com/c/go/+/340260
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/reflectdata/reflect.go