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. 4 5package a 6 7type Foo interface { 8 Hi() string 9} 10 11func Test1() Foo { return make(tst1) } 12 13type tst1 map[string]bool 14 15func (r tst1) Hi() string { return "Hi!" } 16 17func Test2() Foo { return make(tst2, 0) } 18 19type tst2 []string 20 21func (r tst2) Hi() string { return "Hi!" } 22 23func Test3() Foo { return make(tst3) } 24 25type tst3 chan string 26 27func (r tst3) Hi() string { return "Hi!" } 28