Source file src/internal/types/testdata/fixedbugs/issue60346.go

     1  // -lang=go1.20
     2  
     3  // Copyright 2023 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package p
     8  
     9  func F[P any, Q *P](p P) {}
    10  
    11  var _ = F[int]
    12  
    13  func G[R any](func(R)) {}
    14  
    15  func _() {
    16  	G(F[int])
    17  }
    18  

View as plain text