diff options
author | Russ Cox <rsc@golang.org> | 2009-01-16 16:12:14 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-16 16:12:14 -0800 |
commit | f48cbfdf5629526ed49534e55298a5a12216ea0c (patch) | |
tree | 7da3dc3316609873715c3e6e7871cb2bf57da081 /test/method.go | |
parent | 9f4a27cbe6cc46a82bb9f3e0cb23dda10819be15 (diff) | |
download | go-f48cbfdf5629526ed49534e55298a5a12216ea0c.tar.gz go-f48cbfdf5629526ed49534e55298a5a12216ea0c.zip |
convert tests; nothing interesting.
R=r
OCL=23012
CL=23014
Diffstat (limited to 'test/method.go')
-rw-r--r-- | test/method.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/method.go b/test/method.go index 6dba3d1781..f57c269074 100644 --- a/test/method.go +++ b/test/method.go @@ -6,12 +6,12 @@ package main -type S string -type S1 string -type I int -type I1 int -type T struct { x int } -type T1 T +export type S string +export type S1 string +export type I int +export type I1 int +export type T struct { x int } +export type T1 T func (s S) val() int { return 1 } func (s *S1) val() int { return 2 } @@ -20,7 +20,7 @@ func (i *I1) val() int { return 4 } //func (t T) val() int { return 7 } func (t *T1) val() int { return 8 } -type Val interface { +export type Val interface { val() int } |