Skip to content

Commit

Permalink
internal/lsp/testdata: update inferred.go to use hoverdef
Browse files Browse the repository at this point in the history
Change-Id: I0245a594680c8aaf6e2664eafd97ed8ad5ce0ac3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/350029
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
findleyr committed Sep 14, 2021
1 parent 9207707 commit 5492d01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/lsp/testdata/godef/infer_generics/inferred.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ func app[S interface{ ~[]E }, E any](s S, e E) S {
}

func _() {
_ = app[[]int] //@mark(constrInfer, "app"),hover("app", constrInfer)
_ = app[[]int, int] //@mark(instance, "app"),hover("app", instance)
_ = app[[]int]([]int{}, 0) //@mark(partialInfer, "app"),hover("app", partialInfer)
_ = app([]int{}, 0) //@mark(argInfer, "app"),hover("app", argInfer)
_ = app[[]int] //@mark(constrInfer, "app"),hoverdef("app", constrInfer)
_ = app[[]int, int] //@mark(instance, "app"),hoverdef("app", instance)
_ = app[[]int]([]int{}, 0) //@mark(partialInfer, "app"),hoverdef("app", partialInfer)
_ = app([]int{}, 0) //@mark(argInfer, "app"),hoverdef("app", argInfer)
}

0 comments on commit 5492d01

Please sign in to comment.