mirror of
https://github.com/golang/go
synced 2024-11-12 03:40:21 -07:00
292bd04a43
Because bug040.go was ignoring all error messages, the fact that it got an error about fuction main was being ignored. R=golang-dev, r CC=golang-dev https://golang.org/cl/5675085
12 lines
286 B
Go
12 lines
286 B
Go
// errorcheck
|
|
|
|
// 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 (x, // GCCGO_ERROR "previous"
|
|
x int) { // ERROR "redeclared|redefinition" "duplicate"
|
|
}
|