summaryrefslogtreecommitdiff
path: root/test/method4.dir/prog.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/method4.dir/prog.go')
-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 77d580cff..cb5cf65f2 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}