diff --git a/src/cmd/fix/cftype.go b/src/cmd/fix/cftype.go index df1cc18f9e..b47b06682a 100644 --- a/src/cmd/fix/cftype.go +++ b/src/cmd/fix/cftype.go @@ -119,7 +119,7 @@ func typefix(f *ast.File, badType func(string) bool) bool { if !ok { return } - t := s.X.(*ast.SelectorExpr) + t, ok := s.X.(*ast.SelectorExpr) if !ok { return }