| 1 |
// |
| 2 |
PACKAGE c |
| 3 |
|
| 4 |
IMPORTPATH |
| 5 |
testdata/c |
| 6 |
|
| 7 |
IMPORTS |
| 8 |
a |
| 9 |
|
| 10 |
FILENAMES |
| 11 |
testdata/c.go |
| 12 |
|
| 13 |
TYPES |
| 14 |
// A (should see this) |
| 15 |
type A struct{} |
| 16 |
|
| 17 |
// B (should see this) |
| 18 |
type B struct{} |
| 19 |
|
| 20 |
// C (should see this) |
| 21 |
type C struct{} |
| 22 |
|
| 23 |
// D (should see this) |
| 24 |
type D struct{} |
| 25 |
|
| 26 |
// E1 (should see this) |
| 27 |
type E1 struct{} |
| 28 |
|
| 29 |
// E (should see this for E2 and E3) |
| 30 |
type E2 struct{} |
| 31 |
|
| 32 |
// E (should see this for E2 and E3) |
| 33 |
type E3 struct{} |
| 34 |
|
| 35 |
// E4 (should see this) |
| 36 |
type E4 struct{} |
| 37 |
|
| 38 |
// |
| 39 |
type T1 struct{} |
| 40 |
|
| 41 |
// |
| 42 |
func (t1 *T1) M() |
| 43 |
|
| 44 |
// T2 must not show methods of local T1 |
| 45 |
type T2 struct { |
| 46 |
a.T1 // not the same as locally declared T1 |
| 47 |
} |
| 48 |
|