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
Currently, NilAway does not track nilability checked via custom boolean returning functions. Hence, this results in false positives, such as in the example shown below.
func isValNil(val *int) bool {
return val == nil
}
func test() {
var x *int
if !isValNil(x) {
_ = *x // FP: unassigned variable `x` dereferenced
}
}
The text was updated successfully, but these errors were encountered:
Currently, NilAway does not track nilability checked via custom boolean returning functions. Hence, this results in false positives, such as in the example shown below.
The text was updated successfully, but these errors were encountered: