/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue9738.go
20 строк
302 B
Shenghou Ma
cmd/gc: always treat the output parameters as having been assigned in capturevars.
02 фев 2015, 17:14
02 фев 2015, 17:14
3bf005c
Код
Авторство
О чём код?
// run // Copyright 2015 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 func F() (x int) { defer func() { if x != 42 { println("BUG: x =", x) } }() return 42 } func main() { F() }