Source file test/fixedbugs/issue18655.go
1 // errorcheck 2 3 // Copyright 2017 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. 6 7 package p 8 9 type T struct{} 10 type A = T 11 type B = T 12 13 func (T) m() {} 14 func (T) m() {} // ERROR "already declared|redefinition" 15 func (A) m() {} // ERROR "already declared|redefinition" 16 func (A) m() {} // ERROR "already declared|redefinition" 17 func (B) m() {} // ERROR "already declared|redefinition" 18 func (B) m() {} // ERROR "already declared|redefinition" 19 20 func (*T) m() {} // ERROR "already declared|redefinition" 21 func (*A) m() {} // ERROR "already declared|redefinition" 22 func (*B) m() {} // ERROR "already declared|redefinition" 23