...

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

Documentation: internal/types/testdata/fixedbugs

     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  package p
     6  
     7  type A = struct {
     8  	F string
     9  	G int
    10  }
    11  
    12  func Make[T ~A]() T {
    13  	return T{
    14  		F: "blah",
    15  		G: 1234,
    16  	}
    17  }
    18  
    19  type N struct {
    20  	F string
    21  	G int
    22  }
    23  
    24  func _() {
    25  	_ = Make[N]()
    26  }
    27  

View as plain text