aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2024-02-27 09:21:44 -0800
committerGopher Robot <gobot@golang.org>2024-02-28 02:54:13 +0000
commit5e00352b9b8919836f5793a2fe2db690fb7507c1 (patch)
tree93dffc9600348fe9a3ec1f4fca407ae33bfd4a31 /test
parent1a6498e1cb8d68c747a926efb3749625e135e6df (diff)
downloadgo-5e00352b9b8919836f5793a2fe2db690fb7507c1.tar.gz
go-5e00352b9b8919836f5793a2fe2db690fb7507c1.zip
go/types, types2: consistently use singular when reporting version errors
Change-Id: I39af932b789cd18dc4bfc84f9667b1c32c9825f4 Reviewed-on: https://go-review.googlesource.com/c/go/+/567476 Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue31747.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/fixedbugs/issue31747.go b/test/fixedbugs/issue31747.go
index 319a721337..b40aecd5d2 100644
--- a/test/fixedbugs/issue31747.go
+++ b/test/fixedbugs/issue31747.go
@@ -8,18 +8,18 @@ package p
// numeric literals
const (
- _ = 1_000 // ERROR "underscores in numeric literals requires go1.13 or later \(-lang was set to go1.12; check go.mod\)|requires go1.13"
- _ = 0b111 // ERROR "binary literals requires go1.13 or later"
- _ = 0o567 // ERROR "0o/0O-style octal literals requires go1.13 or later"
+ _ = 1_000 // ERROR "underscore in numeric literal requires go1.13 or later \(-lang was set to go1.12; check go.mod\)|requires go1.13"
+ _ = 0b111 // ERROR "binary literal requires go1.13 or later"
+ _ = 0o567 // ERROR "0o/0O-style octal literal requires go1.13 or later"
_ = 0xabc // ok
- _ = 0x0p1 // ERROR "hexadecimal floating-point literals requires go1.13 or later"
+ _ = 0x0p1 // ERROR "hexadecimal floating-point literal requires go1.13 or later"
- _ = 0B111 // ERROR "binary"
- _ = 0O567 // ERROR "octal"
- _ = 0Xabc // ok
- _ = 0X0P1 // ERROR "hexadecimal floating-point"
+ _ = 0b111 // ERROR "binary"
+ _ = 0o567 // ERROR "octal"
+ _ = 0xabc // ok
+ _ = 0x0p1 // ERROR "hexadecimal floating-point"
- _ = 1_000i // ERROR "underscores"
+ _ = 1_000i // ERROR "underscore"
_ = 0b111i // ERROR "binary"
_ = 0o567i // ERROR "octal"
_ = 0xabci // ERROR "hexadecimal floating-point"