gc: remove funarg special case in structfield
This should make CL 5431046 a little simpler.
R=ken2
CC=golang-dev
https://golang.org/cl/5444048
diff --git a/test/blank.go b/test/blank.go
index 681a5e7..581bc85 100644
--- a/test/blank.go
+++ b/test/blank.go
@@ -101,6 +101,29 @@
}
h(a, b)
+
+ m()
+}
+
+type I interface {
+ M(_ int, y int)
+}
+
+type TI struct{}
+
+func (TI) M(x int, y int) {
+ if x != y {
+ println("invalid M call:", x, y)
+ panic("bad M")
+ }
+}
+
+func m() {
+ var i I
+
+ i = TI{}
+ i.M(1, 1)
+ i.M(2, 2)
}
// useless but legal
@@ -120,3 +143,4 @@
func ff() {
var _ int = 1
}
+