...
1
2
3
4
5
6
7
8
9 package issue12839
10
11 import "p"
12
13 type T1 struct{}
14
15 type T2 struct{}
16
17 func (t T1) hello() string {
18 return "hello"
19 }
20
21
22 func F1() (*T1, *T2) {
23 return &T1{}, &T2{}
24 }
25
26
27 func F2() (a, b, c T1) {
28 return T1{}, T1{}, T1{}
29 }
30
31
32 func F3() (a T1, b p.T3) {
33 return T1{}, p.T3{}
34 }
35
36
37 func F4() (a T1, b T2) {
38 return T1{}, T2{}
39 }
40
41
42 func F5() (T1, error) {
43 return T1{}, nil
44 }
45
46
47 func F6() (*T1, error) {
48 return &T1{}, nil
49 }
50
51
52 func F7() (T1, string) {
53 return T1{}, nil
54 }
55
56
57 func F8() (int, T1, string) {
58 return 0, T1{}, nil
59 }
60
61
62 func F9() (int, T1, T2) {
63 return 0, T1{}, T2{}
64 }
65
66
67 func F10() (T1, T2, error) {
68 return T1{}, T2{}, nil
69 }
70
View as plain text