diff options
author | Russ Cox <rsc@golang.org> | 2009-09-29 21:21:14 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-29 21:21:14 -0700 |
commit | 6f1698774d7061d30fd74fca7dacde8ea77a39a5 (patch) | |
tree | d76833b43ff7d2c7bc8f9035fc05f589783b353f /test/parentype.go | |
parent | c51e184538d96ada6a3f0ff1c2d23fa810b313f1 (diff) | |
download | go-6f1698774d7061d30fd74fca7dacde8ea77a39a5.tar.gz go-6f1698774d7061d30fd74fca7dacde8ea77a39a5.zip |
undo 35108 (disallow parens around type in struct literal).
allow parens around [...]int in struct literal.
R=ken
OCL=35112
CL=35130
Diffstat (limited to 'test/parentype.go')
-rw-r--r-- | test/parentype.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parentype.go b/test/parentype.go index dd9c4891c9..d5729f820d 100644 --- a/test/parentype.go +++ b/test/parentype.go @@ -10,6 +10,10 @@ func f(interface{}) func g() {} func main() { f(map[string]string{"a":"b","c":"d"}); + f([...]int{1,2,3}); + f(([...]int){1,2,3}); + f((map[string]string){"a":"b","c":"d"}); + f((map[string]func()){"a":g,"c":g}); f(make(chan(<-chan int))); f(make(chan<-(chan int))); } |