/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue4932.dir/state.go
28 строк
434 B
Rémy Oudompheng
cmd/gc: unbreak exporting of composite literals.
04 мар 2013, 19:42
04 мар 2013, 19:42
b0bb6f8
Код
Авторство
О чём код?
// Copyright 2013 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 state import "./foo" func Public() { var s Settings s.op() } type State struct{} func (s *State) x(*Settings) {} type Settings struct{} func (c *Settings) x() { run([]foo.Op{{}}) } func run([]foo.Op) {} func (s *Settings) op() foo.Op { return foo.Op{} }