aboutsummaryrefslogtreecommitdiff
path: root/test/decl.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-01-19 23:09:00 -0500
committerRuss Cox <rsc@golang.org>2011-01-19 23:09:00 -0500
commitf2b5a07453277de6bc500dc283799441cc375239 (patch)
tree2c5fdc55fd72274b49b5eff68736ff3075389b3d /test/decl.go
parent0849944694543a3446da4b1fa0c3d314781ced14 (diff)
downloadgo-f2b5a07453277de6bc500dc283799441cc375239.tar.gz
go-f2b5a07453277de6bc500dc283799441cc375239.zip
delete float, complex - code changes
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
Diffstat (limited to 'test/decl.go')
-rw-r--r--test/decl.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/decl.go b/test/decl.go
index c31082bcfd..95b6346c3e 100644
--- a/test/decl.go
+++ b/test/decl.go
@@ -8,26 +8,26 @@
package main
-func f1() int { return 1 }
-func f2() (float, int) { return 1, 2 }
-func f3() (float, int, string) { return 1, 2, "3" }
+func f1() int { return 1 }
+func f2() (float32, int) { return 1, 2 }
+func f3() (float32, int, string) { return 1, 2, "3" }
func x() (s string) {
a, b, s := f3()
_, _ = a, b
- return // tests that result var is in scope for redeclaration
+ return // tests that result var is in scope for redeclaration
}
func main() {
i, f, s := f3()
- j, f := f2() // redeclare f
+ j, f := f2() // redeclare f
k := f1()
m, g, s := f3()
m, h, s := f3()
{
// new block should be ok.
i, f, s := f3()
- j, f := f2() // redeclare f
+ j, f := f2() // redeclare f
k := f1()
m, g, s := f3()
m, h, s := f3()