You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest entry in our "build tags hate us" saga: SA4006.
func gen() int { return 42 }
func die() { panic("good bye") }
func Fn() {
x := gen()
println(x)
x = gen()
die()
println(x)
}
we flag the second assignment to x here, because we recognize that control flow doesn't continue after die gets called. Things get problematic when die turns into feature that is only implemented on some OSs and panics unconditionally on others thanks to build tags. Now we flag an assignment that is only conditionally unused, depending on the build tags in use.
The text was updated successfully, but these errors were encountered:
The latest entry in our "build tags hate us" saga: SA4006.
we flag the second assignment to
x
here, because we recognize that control flow doesn't continue afterdie
gets called. Things get problematic whendie
turns intofeature that is only implemented on some OSs and panics unconditionally on others thanks to build tags
. Now we flag an assignment that is only conditionally unused, depending on the build tags in use.The text was updated successfully, but these errors were encountered: