/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue51437.go
19 строк
314 B
Robert Griesemer
go/types, types2: fix scoping for iteration variables declared by range clause
03 мар 2022, 19:02
03 мар 2022, 19:02
d3fe4e1
Код
Авторство
О чём код?
// compile // Copyright 2022 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 p type T struct{} func (T) m() []T { return nil } func f(x T) { for _, x := range func() []T { return x.m() }() { _ = x } }