Black Lives Matter. Support the Equal Justice Initiative.

Text file src/go/types/testdata/fixedbugs/issue45985.go2

Documentation: go/types/testdata/fixedbugs

     1  // Copyright 2021 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 issue45985
     6  
     7  // TODO(rFindley): this error should be on app[int] below.
     8  func app[S /* ERROR "type S = S does not match" */ interface{ type []T }, T any](s S, e T) S {
     9      return append(s, e)
    10  }
    11  
    12  func _() {
    13  	_ = app[int]
    14  }
    15  

View as plain text