Skip to content

Commit

Permalink
Accept test suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Owen Mansel-Chan <[email protected]>
  • Loading branch information
smowton and owen-mc authored Sep 4, 2024
1 parent cbd129f commit b2c0cb1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Impl1 struct{}

func (recv Impl1) ImplementMe(callable func(struct{ x IntAlias })) {}

// Implementation via unalising
// Implementation via unaliasing
type Impl2 struct{}

func (recv Impl2) ImplementMe(callable func(struct{ x int })) {}
Expand All @@ -37,6 +37,13 @@ type Impl5Alias = IntAlias

func (recv Impl5) ImplementMe(callable func(struct{ x Impl5Alias })) {}

// Implementation via defining the method on an alias
type Impl6 struct{}

type Impl6Alias = Impl6

func (recv Impl6Alias) ImplementMe(callable func(struct{ x int })) {}

func Caller(target Target) {
target.ImplementMe(nil)
}

0 comments on commit b2c0cb1

Please sign in to comment.