Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
issue47775b.go29 linesDownload Raw Back to typeparam
1// run2 3// Copyright 2021 The Go Authors. All rights reserved.4// Use of this source code is governed by a BSD-style5// license that can be found in the LICENSE file.6 7package main8 9type C[T any] struct {10}11 12func (c *C[T]) reset() {13}14 15func New[T any]() {16	c := &C[T]{}17	i = c.reset18	z(c.reset)19}20 21var i interface{}22 23func z(interface{}) {24}25 26func main() {27	New[int]()28}29 
codekingpro/portable-devtools · Team Ai