Commit 3e804ba7 authored by Ian Lance Taylor's avatar Ian Lance Taylor

There should not be a prohibition against embedding an

interface type in a struct.  It is meaningful and the
compilers support it.

R=gri
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33378
CL=33384
parent fb9490c2
......@@ -695,8 +695,8 @@ struct {
A field declared with a type but no field identifier is an <i>anonymous field</i>.
Such a field type must be specified as
a type name <code>T</code> or as a pointer to a type name <code>*T</code>,
and <code>T</code> itself, may not be
a pointer or interface type. The unqualified type name acts as the field identifier.
and <code>T</code> itself may not be
a pointer type. The unqualified type name acts as the field identifier.
</p>
<pre>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment