/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue78599.go
33 строки
613 B
Derek Parker
cmd/compile: improve filtering in preInliningDcls
15 апр 2026, 20:55
15 апр 2026, 20:55
b77ae50
Код
Авторство
О чём код?
// 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 78599: compiler ICE (DwarfFixupTable has orphaned fixup) // when wrapping iter.Seq2[K, ZeroSize] into iter.Seq[K]. package p import "iter" func pairs() iter.Seq2[int, struct{}] { return func(yield func(int, struct{}) bool) { yield(1, struct{}{}) } } func keys() iter.Seq[int] { return func(yield func(int) bool) { for k := range pairs() { if !yield(k) { return } } } } func use() { for range keys() { } }