diff options
author | Anthony Martin <ality@pbrane.org> | 2011-05-31 15:41:47 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-05-31 15:41:47 -0400 |
commit | 5b62ba14c460a23d31c8c2645a41c196ceee8220 (patch) | |
tree | 3040e3f0a909802f646dbacbb2063af438e5d524 /test/ddd1.go | |
parent | c72dbaf3124f5ce4d77aab723ebe5150d4c27ad2 (diff) | |
download | go-5b62ba14c460a23d31c8c2645a41c196ceee8220.tar.gz go-5b62ba14c460a23d31c8c2645a41c196ceee8220.zip |
gc: disallow ... in type conversions
Fixes #1866.
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4548073
Diffstat (limited to 'test/ddd1.go')
-rw-r--r-- | test/ddd1.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ddd1.go b/test/ddd1.go index a0bc73814f..96a358e1c0 100644 --- a/test/ddd1.go +++ b/test/ddd1.go @@ -43,4 +43,5 @@ func bad(args ...int) { var x int _ = unsafe.Pointer(&x...) // ERROR "[.][.][.]" _ = unsafe.Sizeof(x...) // ERROR "[.][.][.]" + _ = [...]byte("foo") // ERROR "[.][.][.]" } |