/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue54911.go
21 строка
364 B
Cuong Manh Le
test: add regression test for issue 54911
07 сен 2022, 16:58
07 сен 2022, 16:58
5a96386
Код
Авторство
О чём код?
// compile // Copyright 2022 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 type Set[T comparable] map[T]struct{} func (s Set[T]) Add() Set[T] { return s } func (s Set[T]) Copy() Set[T] { return Set[T].Add(s) } func main() { _ = Set[int]{42: {}} }