]> Cypherpunks repositories - gostls13.git/commitdiff
bad error message
authorRobert Griesemer <gri@golang.org>
Wed, 27 May 2009 16:47:13 +0000 (09:47 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 27 May 2009 16:47:13 +0000 (09:47 -0700)
TBR=rsc
DELTA=14  (14 added, 0 deleted, 0 changed)
OCL=29441
CL=29441

test/bugs/bug153.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug153.go b/test/bugs/bug153.go
new file mode 100644 (file)
index 0000000..609397f
--- /dev/null
@@ -0,0 +1,14 @@
+// errchk $G $D/$F.go
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func f(args ...) {
+}
+
+func main() {
+       f(nil);  // ERROR "nil"
+}
index 6bc8837d49c7569b32001e9ab5adf128d1ad70de..6a7756babb46e7ca9fb6cddac8221c4c5549ae67 100644 (file)
@@ -108,6 +108,10 @@ BUG: should crash
 bugs/bug149.go:14: cannot convert []uint8 constant to string
 BUG: should compile
 
+=========== bugs/bug153.go
+BUG: errchk: bugs/bug153.go:9: error message does not match 'nil'
+bugs/bug153.go:9: fatal error: dowidth: unknown type: E-34
+
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: constant -3 overflows uint