1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00

internal/lsp/testdata: change test case to work around CL 202581

go/parser has switched from reporting no position for the end of a
broken file to reporting an invalid position. This broke on of our tests
that contains broken code. Change the test case as a result.

Change-Id: I4feb7790539994e593c56d5ae84929364c1eec1c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/204202
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
Rebecca Stambler 2019-10-30 16:59:48 -04:00
parent 5e247c9ad0
commit 889af361d2

View File

@ -13,7 +13,7 @@ func _() {
func _() {
var pineapple int //@item(pineapple, "pineapple", "int", "var")
pineapple = //@complete(" /", pineapple, apple, pear)
pineapple = 1 //@complete(" 1", pineapple, apple, pear)
y := //@complete(" /", pineapple, apple, pear)
y := //@complete(" /", pineapple, apple, pear)
}