3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Verify that method redeclarations are caught by the compiler.
13 func (t
*T
) M(int, string) // GCCGO_ERROR "previous"
14 func (t
*T
) M(int, float64) { } // ERROR "redeclared|redefinition"
16 func f(int, string) // GCCGO_ERROR "previous"
17 func f(int, float64) { } // ERROR "redeclared|redefinition"
19 func g(a
int, b
string) // GCCGO_ERROR "previous"
20 func g(a
int, c
string) // ERROR "redeclared|redefinition"