3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
21 fmt.Println("package main")
23 // These types always passed
24 "bool", "int", "rune",
28 "map[string]struct{}",
29 "func()", "func(string)error",
31 // These types caused compilation failures
32 "complex64", "complex128",
33 "struct{}", "struct{n int}", "struct{e error}", "struct{m map[string]string}",
37 "interface{}", "error",
39 for i, typ := range types {
40 fmt.Printf(tpl, i, typ)
42 fmt.Println("func main() {}")