...
Run Format

Source file test/fixedbugs/issue18655.go

Documentation: test/fixedbugs

     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 "redeclared"
    15  func (A) m() {} // ERROR "redeclared"
    16  func (A) m() {} // ERROR "redeclared"
    17  func (B) m() {} // ERROR "redeclared"
    18  func (B) m() {} // ERROR "redeclared"
    19  
    20  func (*T) m() {} // ERROR "redeclared"
    21  func (*A) m() {} // ERROR "redeclared"
    22  func (*B) m() {} // ERROR "redeclared"
    23  

View as plain text