blob: 57f7ee2c1edecdeb57e9483e37b055d23e58890e [file] [log] [blame]
// compile
// Copyright 2020 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.
// Using a type literal based on a type parameter as a type argument
// in a result.
package p
type S[T any] struct {
f T
}
func SliceS[T any]() S[[]T] {
return S[[]T]{nil}
}
var V = SliceS[int]()