Initial commit: Go 1.23 release state
This commit is contained in:
15
test/fixedbugs/issue67141.go
Normal file
15
test/fixedbugs/issue67141.go
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user