@@ -3,36 +3,39 @@ package intfs
33type IntAlias = int
44
55type Target = interface {
6- ImplementMe (callable func (struct { x IntAlias }))
6+ ImplementMe (callable func (struct { x IntAlias }))
77}
88
99// Simple direct implementation
10- type Impl1 struct {}
10+ type Impl1 struct {}
1111
12- func (recv Impl1 ) ImplementMe (callable func (struct { x IntAlias })) { }
12+ func (recv Impl1 ) ImplementMe (callable func (struct { x IntAlias })) {}
1313
1414// Implementation via unalising
15- type Impl2 struct {}
15+ type Impl2 struct {}
1616
17- func (recv Impl2 ) ImplementMe (callable func (struct { x int })) { }
17+ func (recv Impl2 ) ImplementMe (callable func (struct { x int })) {}
1818
1919// Implementation via top-level aliasing
20- type Impl3 struct {}
20+ type Impl3 struct {}
2121
22- type Impl3Alias = func (struct { x IntAlias })
23- func (recv Impl3 ) ImplementMe (callable Impl3Alias ) { }
22+ type Impl3Alias = func (struct { x IntAlias })
23+
24+ func (recv Impl3 ) ImplementMe (callable Impl3Alias ) {}
2425
2526// Implementation via aliasing the struct
26- type Impl4 struct {}
27+ type Impl4 struct {}
28+
29+ type Impl4Alias = struct { x IntAlias }
2730
28- type Impl4Alias = struct { x IntAlias }
29- func (recv Impl4 ) ImplementMe (callable func (Impl4Alias )) { }
31+ func (recv Impl4 ) ImplementMe (callable func (Impl4Alias )) {}
3032
3133// Implementation via aliasing the struct member
32- type Impl5 struct {}
34+ type Impl5 struct {}
35+
36+ type Impl5Alias = IntAlias
3337
34- type Impl5Alias = IntAlias
35- func (recv Impl5 ) ImplementMe (callable func (struct { x Impl5Alias })) { }
38+ func (recv Impl5 ) ImplementMe (callable func (struct { x Impl5Alias })) {}
3639
3740func Caller (target Target ) {
3841 target .ImplementMe (nil )
0 commit comments