]> Cypherpunks.ru repositories - gostls13.git/commit
spec: add example for method value in case of embedded method
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 22 Aug 2021 05:07:14 +0000 (12:07 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 23 Aug 2021 17:29:25 +0000 (17:29 +0000)
commitaeec6dbfe009f371021bddba13e2eb18e5d1a469
treea7df0e5e6f98f63fc3f41f3585b3b581dbeb655f
parentf457ecc7f096c7e6b225003b583b989384ef0fcb
spec: add example for method value in case of embedded method

So it's clear to the reader that if "M" is a promoted method from
embedded field "T", then "x.M" will be expanded to "x.T.M" during the
evaluation of the method value.

Fixes #47863

Change-Id: Id3b82127a2054584b6842c487f6e15c3102dc9fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/344209
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html