mirror of
https://github.com/golang/go
synced 2024-11-21 21:44:40 -07:00
test: match gccgo error messages for bug330.go.
bug330.go:11:6: error: expected numeric type bug330.go:12:6: error: expected numeric type R=golang-dev, gri CC=golang-dev https://golang.org/cl/5031050
This commit is contained in:
parent
ae4f1c4c3a
commit
bfe9f228a4
@ -8,6 +8,6 @@ package main
|
||||
|
||||
func main() {
|
||||
x := ""
|
||||
x = +"hello" // ERROR "invalid operation.*string"
|
||||
x = +x // ERROR "invalid operation.*string"
|
||||
x = +"hello" // ERROR "invalid operation.*string|expected numeric"
|
||||
x = +x // ERROR "invalid operation.*string|expected numeric"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user