diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-08 04:10:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-08 04:10:35 +0000 |
commit | da7e85e4b5d49867c08968d797a7e3bda779a58a (patch) | |
tree | 008413f15c1dd8ca9910433d1d089fb06d6ba17d /test/fixedbugs/issue67141.go | |
parent | Adding upstream version 1.22.3. (diff) | |
download | golang-1.22-da7e85e4b5d49867c08968d797a7e3bda779a58a.tar.xz golang-1.22-da7e85e4b5d49867c08968d797a7e3bda779a58a.zip |
Adding upstream version 1.22.4.upstream/1.22.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/fixedbugs/issue67141.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixedbugs/issue67141.go b/test/fixedbugs/issue67141.go new file mode 100644 index 0000000..0464d1f --- /dev/null +++ b/test/fixedbugs/issue67141.go @@ -0,0 +1,15 @@ +// errorcheck -lang=go1.22 + +//go:build go1.21 + +// We need a line directive before the package clause, +// but don't change file name or position so that the +// error message appears at the right place. + +//line issue67141.go:10 +package p + +func _() { + for range 10 { // ERROR "cannot range over 10" + } +} |