Source file src/internal/types/testdata/check/typeinstcycles.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 p
     6  
     7  import "unsafe"
     8  
     9  func F1[T any](_ [unsafe.Sizeof(F1[int])]T) (res T)      { return }
    10  func F2[T any](_ T) (res [unsafe.Sizeof(F2[string])]int) { return }
    11  func F3[T any](_ [unsafe.Sizeof(F1[string])]int)         {}
    12  

View as plain text