Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5492d01

Browse files
committedSep 14, 2021
internal/lsp/testdata: update inferred.go to use hoverdef
Change-Id: I0245a594680c8aaf6e2664eafd97ed8ad5ce0ac3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/350029 Trust: Robert Findley <[email protected]> Run-TryBot: Robert Findley <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 9207707 commit 5492d01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎internal/lsp/testdata/godef/infer_generics/inferred.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ func app[S interface{ ~[]E }, E any](s S, e E) S {
55
}
66

77
func _() {
8-
_ = app[[]int] //@mark(constrInfer, "app"),hover("app", constrInfer)
9-
_ = app[[]int, int] //@mark(instance, "app"),hover("app", instance)
10-
_ = app[[]int]([]int{}, 0) //@mark(partialInfer, "app"),hover("app", partialInfer)
11-
_ = app([]int{}, 0) //@mark(argInfer, "app"),hover("app", argInfer)
8+
_ = app[[]int] //@mark(constrInfer, "app"),hoverdef("app", constrInfer)
9+
_ = app[[]int, int] //@mark(instance, "app"),hoverdef("app", instance)
10+
_ = app[[]int]([]int{}, 0) //@mark(partialInfer, "app"),hoverdef("app", partialInfer)
11+
_ = app([]int{}, 0) //@mark(argInfer, "app"),hoverdef("app", argInfer)
1212
}

0 commit comments

Comments
 (0)
Please sign in to comment.