1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:08:32 -06:00
go/internal/lsp/testdata/format/bad_format.go.golden
Rohan Challa 7124308813 internal/lsp/tests: add severity parameter to @diag markers
This change will add another parameter to the diagnostic markers (@diag).

Change-Id: I69f4672e7d5417099c11d1a46d9bc45a4d1e5ecc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/217719
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-02-04 19:24:00 +00:00

22 lines
243 B
Plaintext

-- gofmt --
package format //@format("package")
import (
"fmt"
"log"
"runtime"
)
func hello() {
var x int //@diag("x", "compiler", "x declared but not used", "error")
}
func hi() {
runtime.GOROOT()
fmt.Printf("")
log.Printf("")
}