/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue73888.go
34 строки
524 B
thepudds
cmd/compile/internal/walk: use original type for composite literals in addrTemp
27 май 2025, 23:52
27 май 2025, 23:52
961818e
Код
Авторство
О чём код?
// run // Copyright 2025 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 SourceRange struct { x, y int } func (r *SourceRange) String() string { return "hello" } type SourceNode interface { SourceRange() } type testNode SourceRange func (tn testNode) SourceRange() { } func main() { n := testNode(SourceRange{}) // zero value Errorf(n) } //go:noinline func Errorf(n SourceNode) { n.SourceRange() }