...

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

Documentation: internal/types/testdata/fixedbugs

     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 p
     6  
     7  // version 1
     8  var x1 T1[B1]
     9  
    10  type T1[_ any] struct{}
    11  type A1 T1[B1]
    12  type B1 = T1[A1]
    13  
    14  // version 2
    15  type T2[_ any] struct{}
    16  type A2 T2[B2]
    17  type B2 = T2[A2]
    18  
    19  var x2 T2[B2]
    20  

View as plain text