mirror of
https://github.com/golang/go
synced 2024-11-19 04:54:41 -07:00
7124308813
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>
9 lines
276 B
Go
9 lines
276 B
Go
package testy
|
|
|
|
import "testing"
|
|
|
|
func TestSomething(t *testing.T) { //@item(TestSomething, "TestSomething(t *testing.T)", "", "func")
|
|
var x int //@mark(testyX, "x"),diag("x", "compiler", "x declared but not used", "error"),refs("x", testyX)
|
|
a() //@mark(testyA, "a")
|
|
}
|