Source file test/fixedbugs/issue5470.dir/a.go

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

View as plain text