diff options
author | Anthony Martin <ality@pbrane.org> | 2011-05-31 15:41:47 -0400 |
---|---|---|
committer | Anthony Martin <ality@pbrane.org> | 2011-05-31 15:41:47 -0400 |
commit | 9f0f986c479a7e17e48746b835205e971aa2c1ff (patch) | |
tree | d41c92d1f8fa8e3b46792943925cc41e6bf8898a /test | |
parent | b44c236170894b5b9c4163267b3aa090e4c1149f (diff) | |
download | go-9f0f986c479a7e17e48746b835205e971aa2c1ff.tar.gz |
gc: disallow ... in type conversions
Fixes issue 1866.
R=bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/4548073
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'test')
-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 a0bc73814..96a358e1c 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 "[.][.][.]" } |