/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue56280.dir/a.go
11 строк
382 B
Matthew Dempsky
cmd/compile: fix transitive inlining of generic functions
09 ноя 2022, 00:26
09 ноя 2022, 00:26
9944ba7
Код
Авторство
О чём код?
// 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 a func F() { // ERROR "can inline F" g(0) // ERROR "inlining call to g\[go.shape.int\]" } func g[T any](_ T) {} // ERROR "can inline g\[int\]" "can inline g\[go.shape.int\]" "inlining call to g\[go.shape.int\]"