mirror of
https://github.com/golang/go
synced 2024-11-21 18:44:45 -07:00
Update restriction on declarations of methods.
APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34289 CL=34289
This commit is contained in:
parent
c9edbbd4d0
commit
5db1d3867f
@ -1659,7 +1659,7 @@ The receiver type must be of the form <code>T</code> or <code>*T</code> where
|
||||
<code>T</code> is a type name. <code>T</code> is called the
|
||||
<i>receiver base type</i> or just <i>base type</i>.
|
||||
The base type must not be a pointer or interface type and must be
|
||||
declared in the same source file as the method.
|
||||
declared in the same package as the method.
|
||||
The method is said to be <i>bound</i> to the base type
|
||||
and is visible only within selectors for that type
|
||||
(§<a href="#Type_declarations">Type declarations</a>, §<a href="#Selectors">Selectors</a>).
|
||||
|
Loading…
Reference in New Issue
Block a user