aboutsummaryrefslogtreecommitdiff
path: root/test/method4.dir
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2014-01-07 13:26:48 +0100
committerRémy Oudompheng <oudomphe@phare.normalesup.org>2014-01-07 13:26:48 +0100
commitf30392125192124450c2831a08416e875ab5baf0 (patch)
tree9f80c57328df82f843cff12c6884888fe0fb4fbe /test/method4.dir
parent0a37002367502fc24d7753e360954da290ffb71a (diff)
downloadgo-f30392125192124450c2831a08416e875ab5baf0.tar.gz
go-f30392125192124450c2831a08416e875ab5baf0.zip
cmd/gc: do not omit wrapper for expression (interface{...}).F
Fixes #6723. R=rsc CC=golang-codereviews https://golang.org/cl/41570047
Diffstat (limited to 'test/method4.dir')
-rw-r--r--test/method4.dir/prog.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/method4.dir/prog.go b/test/method4.dir/prog.go
index 77d580cffc..cb5cf65f29 100644
--- a/test/method4.dir/prog.go
+++ b/test/method4.dir/prog.go
@@ -73,7 +73,14 @@ func main() {
f4 := I2.Sum
eq(f4(t1, a, 17), 27)
eq(f4(t2, a, 18), 28)
-
+
+ // issue 6723
+ f5 := (interface {
+ I2
+ }).Sum
+ eq(f5(t1, a, 19), 29)
+ eq(f5(t2, a, 20), 30)
+
mt1 := method4a.T1(4)
mt2 := &method4a.T2{4}