summaryrefslogtreecommitdiff
path: root/test/test0.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/test0.go')
-rw-r--r--test/test0.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test0.go b/test/test0.go
index a3691fb46..0a11e1d28 100644
--- a/test/test0.go
+++ b/test/test0.go
@@ -8,7 +8,7 @@ package main
const
a_const = 0
-
+
const (
pi = /* the usual */ 3.14159265358979323;
e = 2.718281828;
@@ -55,7 +55,7 @@ func swap(x, y int) (u, v int) {
}
func control_structs() {
- var p *Point = new(Point).Initialize(2, 3);
+ var p *Point = new(*Point).Initialize(2, 3);
i := p.Distance();
var f float = 0.3;
for {}