mirror of
https://github.com/golang/go
synced 2024-11-26 22:31:23 -07:00
b70d42f323
constant without an explicit conversion. I think that is a bug. This adds a test case for it. Also, change errchk to include the string BUG in error messages, so that failures are included in the count reported by the run shell script. R=r,ken DELTA=11 (7 added, 0 deleted, 4 changed) OCL=15857 CL=15880
11 lines
253 B
Go
11 lines
253 B
Go
// 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() string {
|
|
return 0 // ERROR "conversion|type"
|
|
}
|