/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/typeparam/issue52241.go
22 строки
381 B
Wayne Zuo
cmd/compile: allow exporting `.rcvr` ident
07 май 2022, 00:07
07 май 2022, 00:07
ac39dbd
Код
Авторство
О чём код?
// 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 Collector[T any] struct { } func (c *Collector[T]) Collect() { } func TestInOrderIntTree() { collector := Collector[int]{} _ = collector.Collect } func main() { TestInOrderIntTree() }