Skip to content

Commit cc5682d

Browse files
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
1 parent 473441f commit cc5682d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/fixedbugs/bug085.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Bus error
2020

2121
/* expected scope hierarchy (outermost to innermost)
2222
23-
universe scope (contains predeclared identifiers int, float, int32, len, etc.)
23+
universe scope (contains predeclared identifiers int, float32, int32, len, etc.)
2424
"solar" scope (just holds the package name P so it can be found but doesn't conflict)
2525
global scope (the package global scope)
2626
local scopes (function scopes)

test/fixedbugs/bug228.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ package main
88

99
func f(x int, y ...int) // ok
1010

11-
func g(x int, y float) (...) // ERROR "[.][.][.]" "final argument"
11+
func g(x int, y float32) (...) // ERROR "[.][.][.]" "final argument"
1212

1313
func h(x, y ...int) // ERROR "[.][.][.]"
1414

15-
func i(x int, y ...int, z float) // ERROR "[.][.][.]"
15+
func i(x int, y ...int, z float32) // ERROR "[.][.][.]"
1616

1717
var x ...int; // ERROR "[.][.][.]|syntax|type"
1818

0 commit comments

Comments
 (0)