]> Cypherpunks repositories - gostls13.git/commitdiff
test: s/float/float32/
authorIan Lance Taylor <iant@golang.org>
Thu, 13 Dec 2012 23:11:31 +0000 (15:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 13 Dec 2012 23:11:31 +0000 (15:11 -0800)
I just committed a patch to gccgo that notices that float was
never defined, causing an additional unmatched error message.
Rename the type to avoid that message.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/6947049

test/fixedbugs/bug085.go
test/fixedbugs/bug228.go

index 93ae7e0a496788f54adfb76d19ddf0175d2c8990..dae83f8a498bd9635993b19a4509f5e51935d9a5 100644 (file)
@@ -20,7 +20,7 @@ Bus error
 
 /* expected scope hierarchy (outermost to innermost)
 
-universe scope (contains predeclared identifiers int, float, int32, len, etc.)
+universe scope (contains predeclared identifiers int, float32, int32, len, etc.)
 "solar" scope (just holds the package name P so it can be found but doesn't conflict)
 global scope (the package global scope)
 local scopes (function scopes)
index 3d23609dde406a1e29b04933db405fe8fc716dea..3fccd1728883dc72356ece64272503c94332e088 100644 (file)
@@ -8,11 +8,11 @@ package main
 
 func f(x int, y ...int)        // ok
 
-func g(x int, y float) (...)   // ERROR "[.][.][.]" "final argument"
+func g(x int, y float32) (...) // ERROR "[.][.][.]" "final argument"
 
 func h(x, y ...int)            // ERROR "[.][.][.]"
 
-func i(x int, y ...int, z float)       // ERROR "[.][.][.]"
+func i(x int, y ...int, z float32)     // ERROR "[.][.][.]"
 
 var x ...int;          // ERROR "[.][.][.]|syntax|type"