Merge from trunk
[official-gcc.git] / gcc / testsuite / go.test / test / fixedbugs / issue5910.dir / a.go
blobb236c15c7d39efc6d6005cbc60e1171252de1282
1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package a
7 type Package struct {
8 name string
11 type Future struct {
12 result chan struct {
13 *Package
14 error
18 func (t *Future) Result() (*Package, error) {
19 result := <-t.result
20 t.result <- result
21 return result.Package, result.error