Source file test/typeparam/issue51245.go

     1  // build
     2  
     3  // Copyright 2022 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 main
     8  
     9  type T[P any] int
    10  const C T[int] = 3
    11  
    12  type T2 int
    13  const C2 T2 = 9
    14  
    15  func main() {
    16  }
    17  

View as plain text