mirror of
https://github.com/golang/go
synced 2024-11-25 01:57:56 -07:00
bad error message
TBR=rsc DELTA=14 (14 added, 0 deleted, 0 changed) OCL=29441 CL=29441
This commit is contained in:
parent
750a856742
commit
c376d5d7fc
14
test/bugs/bug153.go
Normal file
14
test/bugs/bug153.go
Normal file
@ -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"
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user