2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2011-05-31 11:41:32 -06:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-05-31 11:41:32 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Issue 1871.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
|
|
|
type a interface {
|
2020-12-09 21:14:07 -07:00
|
|
|
foo(x int) (x int) // ERROR "duplicate argument|redefinition|redeclared"
|
2011-05-31 11:41:32 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Previously:
|
|
|
|
|
|
|
|
bug.go:1 x redclared in this block
|
|
|
|
previous declaration at bug.go:1
|
|
|
|
*/
|