diff options
| author | Russ Cox <rsc@golang.org> | 2009-05-21 16:31:10 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-05-21 16:31:10 -0700 |
| commit | c2fa45b9738e79608165f5e8c2b81c08bc158a0a (patch) | |
| tree | e7ce715eb1567a5253d0420ccebe65341dfbc667 /src | |
| parent | bba10b3f492590990c3e146c0be9233a32f82487 (diff) | |
| download | go-c2fa45b9738e79608165f5e8c2b81c08bc158a0a.tar.xz | |
allow type name as key to accomodate anonymous fields.
update tests.
R=ken
OCL=29207
CL=29207
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/gc/go.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 0841d5d90e..0fae90b7fa 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -1363,6 +1363,11 @@ keyval: { $$ = nod(OKEY, $1, $3); } +| LATYPE ':' expr + { + $$ = nod(OKEY, newname($1), $3); + } + /* * function stuff |
