From: Robert Griesemer Date: Wed, 27 May 2009 16:47:13 +0000 (-0700) Subject: bad error message X-Git-Tag: weekly.2009-11-06~1530 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c376d5d7fcd2bff11d85bb95525ed39f4a258ace;p=gostls13.git bad error message TBR=rsc DELTA=14 (14 added, 0 deleted, 0 changed) OCL=29441 CL=29441 --- diff --git a/test/bugs/bug153.go b/test/bugs/bug153.go new file mode 100644 index 0000000000..609397fed8 --- /dev/null +++ b/test/bugs/bug153.go @@ -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" +} diff --git a/test/golden.out b/test/golden.out index 6bc8837d49..6a7756babb 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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