]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: make method names for function scoped types unique
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 29 Aug 2013 14:48:44 +0000 (16:48 +0200)
committerDaniel Morsing <daniel.morsing@gmail.com>
Thu, 29 Aug 2013 14:48:44 +0000 (16:48 +0200)
commit280c8b90e2785a7de2216cb129752bbeca09210a
tree07f9f56a7cca90fb5c0bcb4fd7f4d7be53d83c44
parentbf58d209992395f8c30c8554b2d04dc4e4ce128f
cmd/gc: make method names for function scoped types unique

Types in function scope can have methods on them if they embed another type, but we didn't make the name unique, meaning that 2 identically named types in different functions would conflict with eachother.

Fixes #6269.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13326045
src/cmd/gc/fmt.c
test/fixedbugs/issue6269.go [new file with mode: 0644]