/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue4529.go
33 строки
572 B
Emmanuel Odeke
all: make copyright headers consistent with one space after period
02 май 2016, 16:43
02 май 2016, 16:43
53fd522
Код
Авторство
О чём код?
// compile // Copyright 2012 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 4529: escape analysis crashes on "go f(g())" // when g has multiple returns. package main type M interface{} type A struct { a string b chan M } func (a *A) I() (b <-chan M, c chan<- M) { a.b, c = make(chan M), make(chan M) b = a.b return } func Init(a string, b *A, c interface { I() (<-chan M, chan<- M) }) { b.a = a go b.c(c.I()) } func (a *A) c(b <-chan M, _ chan<- M) {}