Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / cmd / callgraph / testdata / src / pkg / pkg.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/cmd/callgraph/testdata/src/pkg/pkg.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/cmd/callgraph/testdata/src/pkg/pkg.go
new file mode 100644 (file)
index 0000000..b81c97f
--- /dev/null
@@ -0,0 +1,25 @@
+package main
+
+type I interface {
+       f()
+}
+
+type C int
+
+func (C) f() {}
+
+type D int
+
+func (D) f() {}
+
+func main() {
+       var i I = C(0)
+       i.f() // dynamic call
+
+       main2()
+}
+
+func main2() {
+       var i I = D(0)
+       i.f() // dynamic call
+}