summaryrefslogtreecommitdiff
path: root/test/lsp/go
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsp/go')
-rw-r--r--test/lsp/go/main.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lsp/go/main.go b/test/lsp/go/main.go
index e69de29..d60bcd1 100644
--- a/test/lsp/go/main.go
+++ b/test/lsp/go/main.go
@@ -0,0 +1,18 @@
+package main;
+import (
+ "fmt"
+)
+
+type X struct {
+ y int
+}
+
+func main() {
+ _, err := fmt.Println("hello world");
+ if err != nil {
+ return;
+ }
+ var a X
+ println(a.y);
+
+}