blob: aff825e91e939ca527599b2b9ff6543a2c89ea3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package other
type ImpP struct{} //@mark(OtherImpP, "ImpP")
func (*ImpP) Laugh() { //@mark(OtherLaughP, "Laugh")
}
type ImpS struct{} //@mark(OtherImpS, "ImpS")
func (ImpS) Laugh() { //@mark(OtherLaughS, "Laugh")
}
type ImpI interface { //@mark(OtherLaugher, "ImpI")
Laugh() //@mark(OtherLaugh, "Laugh")
}
type Foo struct { //@implementations("Foo", Joker)
}
func (Foo) Joke() { //@mark(ImpJoker, "Joke"),implementations("Joke", Joke)
}
type CryType int
type Cryer interface { //@Cryer
Cry(CryType) //@Cry,implementations("Cry", CryImpl)
}
|