- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewMetaContainer (0.38 sec)
-
test/typeparam/issue48337b.dir/main.go
// 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 main import "./a" func main() { a.NewMetaContainer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 226 bytes - Viewed (0) -
test/typeparam/issue48337b.dir/a.go
type Container[T any] struct { X T } func NewContainer[T any](x T) *Container[T] { return &Container[T]{x} } type MetaContainer struct { C *Container[Value] } type Value struct{} func NewMetaContainer() *MetaContainer { c := NewContainer(Value{}) // c := &Container[Value]{Value{}} // <-- this works return &MetaContainer{c}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 14 23:07:15 UTC 2021 - 508 bytes - Viewed (0)