blob: de5cbb42fbb2f0e79b0a787dda0f0e88710f3612 [file] [log] [blame]
-- suggestedfix_var_10_6 --
package undeclared
func m() int {
z, _ := 1+y, 11 //@diag("y", "compiler", "(undeclared name|undefined): y", "error"),suggestedfix("y", "quickfix", "")
if 100 < 90 {
z = 1
} else if 100 > n+2 { //@diag("n", "compiler", "(undeclared name|undefined): n", "error"),suggestedfix("n", "quickfix", "")
z = 4
}
i :=
for i < 200 { //@diag("i", "compiler", "(undeclared name|undefined): i", "error"),suggestedfix("i", "quickfix", "")
}
r() //@diag("r", "compiler", "(undeclared name|undefined): r", "error")
return z
}
-- suggestedfix_var_4_12 --
package undeclared
func m() int {
y :=
z, _ := 1+y, 11 //@diag("y", "compiler", "(undeclared name|undefined): y", "error"),suggestedfix("y", "quickfix", "")
if 100 < 90 {
z = 1
} else if 100 > n+2 { //@diag("n", "compiler", "(undeclared name|undefined): n", "error"),suggestedfix("n", "quickfix", "")
z = 4
}
for i < 200 { //@diag("i", "compiler", "(undeclared name|undefined): i", "error"),suggestedfix("i", "quickfix", "")
}
r() //@diag("r", "compiler", "(undeclared name|undefined): r", "error")
return z
}
-- suggestedfix_var_7_18 --
package undeclared
func m() int {
z, _ := 1+y, 11 //@diag("y", "compiler", "(undeclared name|undefined): y", "error"),suggestedfix("y", "quickfix", "")
n :=
if 100 < 90 {
z = 1
} else if 100 > n+2 { //@diag("n", "compiler", "(undeclared name|undefined): n", "error"),suggestedfix("n", "quickfix", "")
z = 4
}
for i < 200 { //@diag("i", "compiler", "(undeclared name|undefined): i", "error"),suggestedfix("i", "quickfix", "")
}
r() //@diag("r", "compiler", "(undeclared name|undefined): r", "error")
return z
}