/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue78295.go
20 строк
331 B
Cuong Manh Le
cmd/compile: skip incomplete types in needWrapper
26 мар 2026, 19:01
26 мар 2026, 19:01
b77fdc3
Код
Авторство
О чём код?
// run // Copyright 2026 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 B *struct{ A } type A interface{ m(B) } type s struct{} func (s) m(b B) {} func main() { var b B = new(struct{ A }) b.A = s{} (*b).m(b) }