blob: 46bb989d84c2b1c192080ab457cd82b62fc34e36 [file] [log] [blame]
// 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.
package main
import "./a"
type S[T any] struct {
F T
}
func NewS[T any](v T) S[T] {
return S[T]{F: v}
}
func main() {
v1 := a.NewS(0)
v2 := NewS(0)
if v1.F != v2.F {
panic(v1)
}
}