Source file test/fixedbugs/issue56778.dir/a.go

     1  // Copyright 2022 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 a
     6  
     7  type A struct {
     8  	New func() any
     9  }
    10  
    11  func NewA(i int) *A {
    12  	return &A{
    13  		New: func() any {
    14  			_ = i
    15  			return nil
    16  		},
    17  	}
    18  }
    19  

View as plain text