Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate code emitted for type aliases #250

Open
zeldovich opened this issue May 9, 2019 · 0 comments
Open

duplicate code emitted for type aliases #250

zeldovich opened this issue May 9, 2019 · 0 comments

Comments

@zeldovich
Copy link

% cat foo.go 
package main

//go:generate msgp -tests=false -io=false

type A int
type B = A

func main() {
}
% go generate .
======== MessagePack Code Generator =======
>>> Input: "foo.go"
>>> Wrote and formatted "foo_gen.go"
% go build .
./foo_gen.go:38:12: A.MarshalMsg redeclared in this block
	previous declaration at ./foo_gen.go:10:6
./foo_gen.go:45:13: (*A).UnmarshalMsg redeclared in this block
	previous declaration at ./foo_gen.go:17:6
./foo_gen.go:60:12: A.Msgsize redeclared in this block
	previous declaration at ./foo_gen.go:32:6
% go version
go version go1.12 linux/amd64
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant