commit | a59167c29d6ad2ddf533b3a12b365f72df0e1476 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Thu Aug 27 22:18:45 2020 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Sep 21 22:53:00 2020 +0000 |
tree | 95c4f503becbc19e4700049b4cb340fd3719cab8 | |
parent | 6f309797e4f7eed635950687e902a294126e6fc6 [diff] |
compiler: finalize methods for type aliases of struct types Previously we would finalize the methods of the alias type itself, but since its a type alias we really need to finalize the methods of the aliased type. Also, handle method expressions of unnamed struct types. Test case is https://golang.org/cl/251168. Fixes golang/go#38125 Change-Id: I84c98883ae8641c5fa2b6c5209bf5ef9bb38e57b Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/251279 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>