]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: stop treating interface methods like actual functions
authorMatthew Dempsky <mdempsky@google.com>
Mon, 17 Oct 2016 23:03:27 +0000 (16:03 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 18 Oct 2016 17:29:52 +0000 (17:29 +0000)
commit2b687a7df854f3c88b266b6cec59a207a45c2353
tree83c5b878c729d77008249bf0aee655256f56a502
parent2a441d307868ea5b757fb90eeab07bfc308b94c6
cmd/compile: stop treating interface methods like actual functions

Interface methods can't have function bodies, so there's no need to
process their parameter lists as variable declarations. The only
possible reason would be to check for duplicate parameter names and/or
invalid types, but we do that anyway, and have regression tests for it
(test/funcdup.go).

Change-Id: Iedb15335467caa5d872dbab829bf32ab8cf6204d
Reviewed-on: https://go-review.googlesource.com/31430
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/dcl.go