Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
go/ast: ast.FilterFuncDuplicates does not distinguish between receivers and regular functions #5249
What steps will reproduce the problem? 1. Parse the AST of strconv/atof.go with ast.MergePackageFiles(pkg, ast.FilterFuncDuplicates) What is the expected output? The resulting AST contains: func (d *decimal) atof32() (f float32, ok bool) func atof32(s string) (f float32, err error) What do you see instead? The resulting AST is missing the decimal.atof32() decl and only has: func atof32(s string) (f float32, err error) Which compiler are you using (5g, 6g, 8g, gccgo)? N/A Which operating system are you using? Arch Linux Which version are you using? (run 'go version') go version go1.0.3 Please provide any additional information below. Bug is around this line: https://code.google.com/p/go/source/browse/src/pkg/go/ast/filter.go#215