/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue77635.go
23 строки
441 B
khr@golang.org
cmd/compile: treat all zero-sized values as SSA-able
26 фев 2026, 03:52
26 фев 2026, 03:52
0886e65
Код
Авторство
О чём код?
// compile // 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. // Issue 77635: test building values of zero-sized types. package main import "reflect" func F[T interface{ [2][0]int }](x T) bool { return reflect.DeepEqual(struct { t T c chan int }{t: x}, 1) } func main() { var t [2][0]int F(t) }