Source file test/fixedbugs/issue68526.dir/a/a.go

     1  // Copyright 2024 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  //go:build goexperiment.aliastypeparams
     6  
     7  package a
     8  
     9  type A[T any] = struct{ F T }
    10  
    11  type B = struct{ F int }
    12  
    13  func F() B {
    14  	type a[T any] = struct{ F T }
    15  	return a[int]{}
    16  }
    17  

View as plain text