diff options
author | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
commit | f2b5a07453277de6bc500dc283799441cc375239 (patch) | |
tree | 2c5fdc55fd72274b49b5eff68736ff3075389b3d /test/func1.go | |
parent | 0849944694543a3446da4b1fa0c3d314781ced14 (diff) | |
download | go-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.go | 4 |
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 } |