summaryrefslogtreecommitdiff
path: root/test/method3.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-18 17:24:58 -0800
committerRuss Cox <rsc@golang.org>2009-12-18 17:24:58 -0800
commitde072d60b5297dbb5c2fb8ce4739ed7c922d361f (patch)
tree7f00715264b21d55ed0b16f380c38c94733481c6 /test/method3.go
parent9924abe129f825dc8f928a3724bd71d4f528fcf2 (diff)
downloadgo-de072d60b5297dbb5c2fb8ce4739ed7c922d361f.tar.gz
gc: method expressions on concrete types
R=ken2 http://codereview.appspot.com/180092
Diffstat (limited to 'test/method3.go')
-rw-r--r--test/method3.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/method3.go b/test/method3.go
index 491bcdad3..20ced1eb2 100644
--- a/test/method3.go
+++ b/test/method3.go
@@ -20,6 +20,12 @@ func main() {
var i I;
i = t;
if i.Len() != 5 {
- panicln("length", i.Len());
+ panicln("i.Len", i.Len());
+ }
+ if T.Len(t) != 5 {
+ panicln("T.Len", T.Len(t));
+ }
+ if (*T).Len(&t) != 5 {
+ panicln("(*T).Len", (*T).Len(&t));
}
}