/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue74935.go
19 строк
311 B
Keith Randall
cmd/compile: allow multi-field structs to be stored directly in interfaces
14 ноя 2025, 23:37
14 ноя 2025, 23:37
03ed439
Код
Авторство
О чём код?
// 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 import "reflect" type W struct { E struct{} X *byte } func main() { w := reflect.ValueOf(W{}) _ = w.Field(0).Interface() }