// +build go1.11 | |
package noparse_format //@format("package") | |
// The nonewvars expectation asserts that the go/analysis framework ran. | |
// See comments in badstmt. | |
func what() { | |
var hi func() | |
if { hi() //@diag("{", "syntax", "missing condition in if statement", "error") | |
} | |
hi := nil //@diag(":=", "nonewvars", "no new variables", "warning") | |
} | |