diff options
Diffstat (limited to 'test/interface6.go')
-rw-r--r-- | test/interface6.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/interface6.go b/test/interface6.go index 6053e51d6..27b5740ad 100644 --- a/test/interface6.go +++ b/test/interface6.go @@ -15,9 +15,9 @@ func check(b bool, msg string) { } } -type I1 interface { Get() int; Put(int); } +export type I1 interface { Get() int; Put(int); } -type S1 struct { i int } +export type S1 struct { i int } func (p S1) Get() int { return p.i } func (p S1) Put(i int) { p.i = i } @@ -45,7 +45,7 @@ func f3() { check(s.i == 1, "f3 s"); } -type S2 struct { i int } +export type S2 struct { i int } func (p *S2) Get() int { return p.i } func (p *S2) Put(i int) { p.i = i } @@ -73,9 +73,9 @@ func f6() { check(s.i == 2, "f6 s"); } -type I2 interface { Get() int64; Put(int64); } +export type I2 interface { Get() int64; Put(int64); } -type S3 struct { i, j, k, l int64 } +export type S3 struct { i, j, k, l int64 } func (p S3) Get() int64 { return p.l } func (p S3) Put(i int64) { p.l = i } @@ -103,7 +103,7 @@ func f9() { check(s.l == 4, "f9 s"); } -type S4 struct { i, j, k, l int64 } +export type S4 struct { i, j, k, l int64 } func (p *S4) Get() int64 { return p.l } func (p *S4) Put(i int64) { p.l = i } |