-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
methods: fix exported/unexported bug
Fix case where last method was exported after a new exported method (from a different type) is defined afterwards.
- Loading branch information
1 parent
3a705a5
commit 8111de3
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package testdata | ||
|
||
type ( | ||
MethodSortedTypeUnexported_A struct{} | ||
MethodSortedTypeUnexported_B struct{} | ||
) | ||
|
||
func (MethodSortedTypeUnexported_A) A() {} | ||
func (MethodSortedTypeUnexported_A) B() {} | ||
func (*MethodSortedTypeUnexported_A) c() {} | ||
|
||
//- | ||
|
||
func (MethodSortedTypeUnexported_B) A() {} |