Source file test/abi/promoted_method_expr.dir/p.go

     1  // Copyright 2026 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 p
     6  
     7  type E struct{}
     8  
     9  var Called bool
    10  
    11  func (*E) NilCheck() {
    12  	Called = true
    13  }
    14  
    15  func (E) ValueNilCheck() {
    16  	Called = true
    17  }
    18  
    19  type T0 struct {
    20  	E
    21  }
    22  
    23  type T1 struct {
    24  	X int
    25  	E
    26  }
    27  
    28  type ValueT0 struct {
    29  	E
    30  }
    31  
    32  type ValueT1 struct {
    33  	X int
    34  	E
    35  }
    36  

View as plain text