Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / cmd / guru / testdata / src / alias / alias.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/guru/testdata/src/alias/alias.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/guru/testdata/src/alias/alias.go
new file mode 100644 (file)
index 0000000..42e1d29
--- /dev/null
@@ -0,0 +1,23 @@
+// Tests of Go 1.9 type aliases.
+// See go.tools/guru/guru_test.go for explanation.
+// See alias.golden for expected query results.
+
+package alias // @describe describe-pkg "alias"
+
+type I interface { // @implements implements-I "I"
+       f()
+}
+
+type N int
+
+func (N) f() {}
+
+type M = N // @describe describe-def-M "M"
+var m M    // @describe describe-ref-M "M"
+
+type O N // @describe describe-O "O"
+
+type P = struct{ N } // @describe describe-P "N"
+
+type U = undefined // @describe describe-U "U"
+type _ = undefined // @describe describe-undefined "undefined"