diff options
author | Russ Cox <rsc@golang.org> | 2009-12-18 17:24:58 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-18 17:24:58 -0800 |
commit | de072d60b5297dbb5c2fb8ce4739ed7c922d361f (patch) | |
tree | 7f00715264b21d55ed0b16f380c38c94733481c6 /test/method3.go | |
parent | 9924abe129f825dc8f928a3724bd71d4f528fcf2 (diff) | |
download | go-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.go | 8 |
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)); } } |