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

     1  // Copyright 2023 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 C interface {
     8  	comparable
     9  	[2]any | int
    10  }
    11  
    12  func f[T C]() {}
    13  
    14  func _() {
    15  	_ = f[[ /* ERROR "[2]any does not satisfy C (C mentions [2]any, but [2]any is not in the type set of C)" */ 2]any]
    16  }
    17  

View as plain text