☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa1015
/
testdata
/
go1.23
/
CheckLeakyTimeTick
/
CheckLeakyTimeTick.go
☽
☼
staticcheck/sa1015/testdata/go1.23/CheckLeakyTimeTick/CheckLeakyTimeTick.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import "time"
4
5
func fn1() {
6
// Not flagged because this is no longer a problem in Go 1.23.
7
for range time.Tick(0) {
8
println("")
9
if true {
10
break
11
}
12
}
13
}