aboutsummaryrefslogtreecommitdiff
path: root/test/func1.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/func1.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/func1.go')
-rw-r--r--test/func1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/func1.go b/test/func1.go
index 56f4dfcba4..056ff9877d 100644
--- a/test/func1.go
+++ b/test/func1.go
@@ -8,11 +8,11 @@
package main
-func f1(a int) (int, float) { // BUG (not caught by compiler): multiple return values must have names
+func f1(a int) (int, float32) { // BUG (not caught by compiler): multiple return values must have names
return 7, 7.0
}
-func f2(a int) (a int, b float) { // ERROR "redeclared|definition"
+func f2(a int) (a int, b float32) { // ERROR "redeclared|definition"
return 8, 8.0
}