/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/typeparam/issue51832.go
25 строк
359 B
David Chase
cmd/compile: catch pointless recursion on function types
24 май 2022, 23:35
24 май 2022, 23:35
ccf84a9
Код
Авторство
О чём код?
// 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 F func() F func do[T any]() F { return nil } type G[T any] func() G[T] //go:noinline func dog[T any]() G[T] { return nil } func main() { do[int]() dog[int]() }