aboutsummaryrefslogtreecommitdiff
path: root/test/method2.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
commitf48cbfdf5629526ed49534e55298a5a12216ea0c (patch)
tree7da3dc3316609873715c3e6e7871cb2bf57da081 /test/method2.go
parent9f4a27cbe6cc46a82bb9f3e0cb23dda10819be15 (diff)
downloadgo-f48cbfdf5629526ed49534e55298a5a12216ea0c.tar.gz
go-f48cbfdf5629526ed49534e55298a5a12216ea0c.zip
convert tests; nothing interesting.
R=r OCL=23012 CL=23014
Diffstat (limited to 'test/method2.go')
-rw-r--r--test/method2.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/method2.go b/test/method2.go
index 3ee0ae1364..9a32dd6b6a 100644
--- a/test/method2.go
+++ b/test/method2.go
@@ -6,9 +6,9 @@
package main
-type T struct {a int}
-type P *T
-type P1 *T
+export type T struct {a int}
+export type P *T
+export type P1 *T
func (p P) val() int { return 1 } // ERROR "receiver"
func (p *P1) val() int { return 1 } // ERROR "receiver"