summaryrefslogtreecommitdiff
path: root/test/parentype.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-29 16:05:44 -0700
committerRuss Cox <rsc@golang.org>2009-09-29 16:05:44 -0700
commitcc3a2c8cfaac8610eb80b6c8470796b287af4ba9 (patch)
tree0d3d1588e142af19844eeef45633c69643cbc33b /test/parentype.go
parentd19d8cd0e9732b50fac9c387a7b798a4f2efce40 (diff)
downloadgo-cc3a2c8cfaac8610eb80b6c8470796b287af4ba9.tar.gz
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.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/parentype.go b/test/parentype.go
index e534cb407..dd9c4891c 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)));
}