Source file test/typeparam/issue47775.dir/b.go

     1  // Copyright 2021 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 b
     6  
     7  type C[T any] struct {
     8  }
     9  
    10  func (c *C[T]) reset() {
    11  }
    12  
    13  func New[T any]() {
    14  	c := &C[T]{}
    15  	z(c.reset)
    16  }
    17  
    18  func z(interface{}) {
    19  }
    20  

View as plain text