Skip to content

Commit 0a8e347

Browse files
test: update issue5089.go for recent gccgo changes
As of https://golang.org/cl/43456 gccgo now gives a better error message for this test. Before: fixedbugs/issue5089.go:13:1: error: redefinition of ‘bufio.Buffered’: receiver name changed func (b *bufio.Reader) Buffered() int { // ERROR "non-local|redefinition" ^ fixedbugs/issue5089.go:11:13: note: previous definition of ‘bufio.Buffered’ was here import "bufio" // GCCGO_ERROR "previous" ^ Now: fixedbugs/issue5089.go:13:7: error: may not define methods on non-local type func (b *bufio.Reader) Buffered() int { // ERROR "non-local|redefinition" ^ Change-Id: I4112ca8d91336f6369f780c1d45b8915b5e8e235 Reviewed-on: https://go-review.googlesource.com/c/130955 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 138bfc2 commit 0a8e347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fixedbugs/issue5089.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
package p
1010

11-
import "bufio" // GCCGO_ERROR "previous"
11+
import "bufio"
1212

1313
func (b *bufio.Reader) Buffered() int { // ERROR "non-local|redefinition"
1414
return -1

0 commit comments

Comments
 (0)