gotools/gopls/internal/test/marker/testdata/quickfix/undeclared.txt

Tests of suggested fixes for "undeclared name" diagnostics,
which are of ("compiler", "error") type.

-- go.mod --
module example.com
go 1.12

-- a.go --
package p

func a() {
	z, _ := 1+y, 11 //@quickfix("y", re"(undeclared name|undefined): y", a)
	_ = z
}

-- @a/a.go --
@@ -4 +4 @@
+	y := 
-- b.go --
package p

func b() {
	if 100 < 90 {
	} else if 100 > n+2 { //@quickfix("n", re"(undeclared name|undefined): n", b)
	}
}

-- @b/b.go --
@@ -4 +4 @@
+	n := 
-- c.go --
package p

func c() {
	for i < 200 { //@quickfix("i", re"(undeclared name|undefined): i", c)
	}
	r() //@diag("r", re"(undeclared name|undefined): r")
}

-- @c/c.go --
@@ -4 +4 @@
+	i :=