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
NilAway reports a false positive error for the switch case as shown below. The switch case
func test() {
var x interface{}
switch v := x.(type) {
case nil:
// do nothing
case *int:
print(*v) // error: unassigned variable `x` dereferenced
default:
// do nothing
}
}
The text was updated successfully, but these errors were encountered:
NilAway reports a false positive error for the switch case as shown below. The switch case
The text was updated successfully, but these errors were encountered: