Commit cc5682dc authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: s/float/float32/

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
parent 473441fc
...@@ -20,7 +20,7 @@ Bus error ...@@ -20,7 +20,7 @@ Bus error
/* expected scope hierarchy (outermost to innermost) /* 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) "solar" scope (just holds the package name P so it can be found but doesn't conflict)
global scope (the package global scope) global scope (the package global scope)
local scopes (function scopes) local scopes (function scopes)
......
...@@ -8,11 +8,11 @@ package main ...@@ -8,11 +8,11 @@ package main
func f(x int, y ...int) // ok 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 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" var x ...int; // ERROR "[.][.][.]|syntax|type"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment