summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug099.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-16 16:12:14 -0800
committerRuss Cox <rsc@golang.org>2009-01-16 16:12:14 -0800
commit69ebaa23298a6ea400acd1b300221f93a1cefc52 (patch)
tree7da3dc3316609873715c3e6e7871cb2bf57da081 /test/fixedbugs/bug099.go
parentc10979708228db68df69d1167f330127dac34a3f (diff)
downloadgolang-69ebaa23298a6ea400acd1b300221f93a1cefc52.tar.gz
convert tests; nothing interesting.
R=r OCL=23012 CL=23014
Diffstat (limited to 'test/fixedbugs/bug099.go')
-rw-r--r--test/fixedbugs/bug099.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/bug099.go b/test/fixedbugs/bug099.go
index f76f0e873..9bf3525e6 100644
--- a/test/fixedbugs/bug099.go
+++ b/test/fixedbugs/bug099.go
@@ -7,22 +7,22 @@
package main
// Interface
-type I interface { F() int }
+export type I interface { F() int }
// Implements interface
-type S struct { }
+export type S struct { }
func (s *S) F() int { return 1 }
// Allocates S but returns I
// Arg is unused but important:
// if you take it out (and the 0s below)
// then the bug goes away.
-func NewI(i int) I {
+export func NewI(i int) I {
return new(S)
}
// Uses interface method.
-func Use(x I) {
+export func Use(x I) {
x.F()
}