]> Cypherpunks.ru repositories - gostls13.git/commit
spec: fix prose about promoted methods of embedded fields
authorRobert Griesemer <gri@golang.org>
Thu, 12 May 2022 20:25:01 +0000 (13:25 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 12 May 2022 22:29:02 +0000 (22:29 +0000)
commitda0a6f4b57fc9eb4779c295bc9620c5ed271a641
treecab4b04da470abcee3729ff4591dcd092104d59e
parent6365efb7dcfd6ab90ffe5541ca26bd8d875167a3
spec: fix prose about promoted methods of embedded fields

The types of embedded fields must be named, but they don't
need to be defined types (e.g. if the type name is an alias).

Fixes #41687.

Change-Id: Ib9de65dfab0e23c27d8303875fa45c217aa03331
Reviewed-on: https://go-review.googlesource.com/c/go/+/406054
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
doc/go_spec.html