Skip to content

Commit

Permalink
internal/lsp: update unsafe completion test for upcoming spec changes
Browse files Browse the repository at this point in the history
With unsafe.Slice about to be added, we'll get varying completions at
'unsafe.S_' depending on the Go version. Change the completion position
to be 'unsafe.Si_'.

Change-Id: Ib537fefceda7864b7a256565a3a7286d18e845c6
Reviewed-on: https://go-review.googlesource.com/c/tools/+/312470
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
  • Loading branch information
findleyr committed Apr 22, 2021
1 parent e74674a commit b3e5b99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/lsp/testdata/unsafe/unsafe.go
Expand Up @@ -9,6 +9,5 @@ import (

func _() {
x := struct{}{}
_ = unsafe.Sizeof(x) //@complete("i", Sizeof)
_ = unsafe.Sizeof(x) //@complete("z", Sizeof)
}

0 comments on commit b3e5b99

Please sign in to comment.