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 /test/initializerr.go | |
parent | bba10b3f492590990c3e146c0be9233a32f82487 (diff) | |
download | go-c2fa45b9738e79608165f5e8c2b81c08bc158a0a.tar.gz go-c2fa45b9738e79608165f5e8c2b81c08bc158a0a.zip |
allow type name as key to accomodate anonymous fields.
update tests.
R=ken
OCL=29207
CL=29207
Diffstat (limited to 'test/initializerr.go')
-rw-r--r-- | test/initializerr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/initializerr.go b/test/initializerr.go index 8465dc5d7e..2700ba097b 100644 --- a/test/initializerr.go +++ b/test/initializerr.go @@ -22,4 +22,4 @@ var a4 = [5]byte{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } // ERROR "index" var a5 = []byte { x: 2 } // ERROR "index" var ok1 = S { } // should be ok -var ok2 = T { S: a4 } // should be ok +var ok2 = T { S: ok1 } // should be ok |