summaryrefslogtreecommitdiff
path: root/test/ken/ptrfun.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-30 14:39:31 -0800
committerRuss Cox <rsc@golang.org>2009-01-30 14:39:31 -0800
commit13c0813910e1ee5a6ff12ff11ada037c7ed3aa6f (patch)
tree23faccc99f2fcc5de337a139fb7b812a8a2f3137 /test/ken/ptrfun.go
parent95fa58f7f9799fe1245c824c1a3b318dfabcf909 (diff)
downloadgo-13c0813910e1ee5a6ff12ff11ada037c7ed3aa6f.tar.gz
update go code tree to new func rules.
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
Diffstat (limited to 'test/ken/ptrfun.go')
-rw-r--r--test/ken/ptrfun.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ken/ptrfun.go b/test/ken/ptrfun.go
index e7db3a94d..fe16fce3a 100644
--- a/test/ken/ptrfun.go
+++ b/test/ken/ptrfun.go
@@ -10,7 +10,7 @@ package main
type C struct
{
a int;
- x *(p *C)int;
+ x func(p *C)int;
}
func g(p *C)int;
@@ -29,7 +29,7 @@ main()
c = new(C);
c.a = 6;
- c.x = &g;
+ c.x = g;
v = g(c);
if v != 6 { panic(v); }