Commit c376d5d7 authored by Robert Griesemer's avatar Robert Griesemer

bad error message

TBR=rsc
DELTA=14  (14 added, 0 deleted, 0 changed)
OCL=29441
CL=29441
parent 750a8567
// 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"
}
...@@ -108,6 +108,10 @@ BUG: should crash ...@@ -108,6 +108,10 @@ BUG: should crash
bugs/bug149.go:14: cannot convert []uint8 constant to string bugs/bug149.go:14: cannot convert []uint8 constant to string
BUG: should compile 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
fixedbugs/bug016.go:7: constant -3 overflows uint fixedbugs/bug016.go:7: constant -3 overflows uint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment