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 | 0d668259dc408742a0a10ac020b58add4fef6bab (patch) | |
tree | 3e4d0b30a59080f84ebabdce7409b4836c63ff8e /test/method3.go | |
parent | 1f0e6a4c999edd8b0b3706b4640da07b843386c4 (diff) | |
download | go-0d668259dc408742a0a10ac020b58add4fef6bab.tar.gz go-0d668259dc408742a0a10ac020b58add4fef6bab.zip |
gc: method expressions on concrete types
R=ken2
https://golang.org/cl/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 491bcdad33..20ced1eb23 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)); } } |