some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / simple / testdata / src / CheckSimplifyTypeSwitch / LintSimplifyTypeSwitch.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckSimplifyTypeSwitch/LintSimplifyTypeSwitch.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckSimplifyTypeSwitch/LintSimplifyTypeSwitch.go
deleted file mode 100644 (file)
index 892f844..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-package pkg
-
-import "fmt"
-
-func gen() interface{} { return nil }
-
-func fn(x, y interface{}) {
-       switch z := x.(type) {
-       case int:
-               _ = z
-               fmt.Println(x.(int))
-       }
-       switch x.(type) {
-       case int:
-               fmt.Println(x.(int), y.(int))
-       }
-       switch x.(type) { // want `assigning the result of this type assertion`
-       case int:
-               fmt.Println(x.(int))
-       }
-       switch x.(type) {
-       case int:
-               fmt.Println(x.(string))
-       }
-       switch x.(type) {
-       case int:
-               fmt.Println(y.(int))
-       }
-       switch (gen()).(type) {
-       case int:
-               fmt.Println((gen()).(int))
-       }
-}