diff options
author | Russ Cox <rsc@golang.org> | 2009-09-29 16:05:44 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-29 16:05:44 -0700 |
commit | 9c3c140984ca47f85c4f559ba3634beef5a29a7b (patch) | |
tree | 0d3d1588e142af19844eeef45633c69643cbc33b /test/parentype.go | |
parent | 8f8b735295702ee1dd8632c44aed96c087b5b085 (diff) | |
download | go-9c3c140984ca47f85c4f559ba3634beef5a29a7b.tar.gz go-9c3c140984ca47f85c4f559ba3634beef5a29a7b.zip |
disallow parens around type in struct literal syntax,
per discussion with gri.
R=ken
OCL=35108
CL=35108
Diffstat (limited to 'test/parentype.go')
-rw-r--r-- | test/parentype.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/parentype.go b/test/parentype.go index e534cb4070..dd9c4891c9 100644 --- a/test/parentype.go +++ b/test/parentype.go @@ -10,8 +10,6 @@ func f(interface{}) func g() {} func main() { f(map[string]string{"a":"b","c":"d"}); - 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))); } |