mirror of
https://github.com/golang/go.git
synced 2026-02-03 01:15:04 +03:00
test: recognize gofrontend error messages
shift1.go:76:16: error: shift of non-integer operand shift1.go:77:16: error: shift of non-integer operand Change-Id: I48584c0b01f9f6912a93b5f9bba55b5803fbeced Reviewed-on: https://go-review.googlesource.com/c/go/+/273888 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
@@ -73,8 +73,8 @@ func _() {
|
||||
// non constants arguments trigger a different path
|
||||
f2 := 1.2
|
||||
s2 := "hi"
|
||||
_ = f2 << 2 // ERROR "shift of type float64"
|
||||
_ = s2 << 2 // ERROR "shift of type string"
|
||||
_ = f2 << 2 // ERROR "shift of type float64|non-integer"
|
||||
_ = s2 << 2 // ERROR "shift of type string|non-integer"
|
||||
}
|
||||
|
||||
// shifts in comparisons w/ untyped operands
|
||||
|
||||
Reference in New Issue
Block a user