summaryrefslogtreecommitdiff
path: root/libgo/go/go/types/testdata/fixedbugs/issue45985.go2
blob: 9a0f5e36970058c347a5f312609f6821c208be59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package issue45985

func app[S interface{ ~[]T }, T any](s S, e T) S {
    return append(s, e)
}

func _() {
	_ = app/* ERROR "S does not match" */[int]
}