modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/fixedbugs/issue3552.dir/one.go (about)

     1  // Copyright 2012 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package one
     6  
     7  // Issue 3552
     8  
     9  type T struct { int }
    10  
    11  func (t T) F() int { return t.int }
    12  
    13  type U struct { int int }
    14  
    15  func (u U) F() int { return u.int }
    16  
    17  type lint int
    18  
    19  type V struct { lint }
    20  
    21  func (v V) F() int { return int(v.lint) }
    22  
    23  type W struct { lint lint }
    24  
    25  func (w W) F() int { return int(w.lint) }
    26  
    27  
    28