summaryrefslogtreecommitdiff
path: root/test/func.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-06 15:19:02 -0800
committerRuss Cox <rsc@golang.org>2009-01-06 15:19:02 -0800
commite684aa575c07e0c3b15d959ff4b06d9d8787597a (patch)
treef3f98baba1fdd5e0138a4875884aa85111308b3f /test/func.go
parent2e8a2665111620da74f35212abc1414c1bab4bad (diff)
downloadgolang-e684aa575c07e0c3b15d959ff4b06d9d8787597a.tar.gz
new new & make
R=r OCL=22166 CL=22166
Diffstat (limited to 'test/func.go')
-rw-r--r--test/func.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/func.go b/test/func.go
index 7b15f7477..ee9414ddc 100644
--- a/test/func.go
+++ b/test/func.go
@@ -81,7 +81,7 @@ func main() {
r9, s9 := f9(1);
assertequal(r9, 9, "r9");
assertequal(int(s9), 9, "s9");
- var t *T = new(*T);
+ var t *T = new(T);
t.x = 1;
t.y = 2;
r10 := t.m10(1, 3.0);