Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / simple / testdata / src / CheckTimeUntil_go18 / LimeTimeUntil_go18.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/CheckTimeUntil_go18/LimeTimeUntil_go18.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckTimeUntil_go18/LimeTimeUntil_go18.go
new file mode 100644 (file)
index 0000000..359b9db
--- /dev/null
@@ -0,0 +1,10 @@
+package pkg
+
+import "time"
+
+func fn(t time.Time) {
+       t.Sub(time.Now()) // want `time\.Until`
+       t.Sub(t)
+       t2 := time.Now()
+       t.Sub(t2)
+}