Source file test/typeparam/issue51367.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[T any] struct{}
     8  
     9  func (_ A[T]) Method() {}
    10  
    11  func DoSomething[P any]() {
    12  	a := A[*byte]{}
    13  	a.Method()
    14  }
    15  

View as plain text