mirror of
https://github.com/golang/go
synced 2024-10-01 13:28:37 -06:00
4bf2f4069d
None of the godef tests were running due to a mistake in the test harness code. Fix them and re-enable. We decided that the range for an import statement should be the whole import path, not just the first character, so make that change and adjust the PrepareRename tests accordingly. Change-Id: I45756a78f2a1beb3c5180b5f288ce078075624bf Reviewed-on: https://go-review.googlesource.com/c/tools/+/207900 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
20 lines
377 B
Go
20 lines
377 B
Go
// A comment just to push the positions out
|
|
|
|
package a
|
|
|
|
import "fmt"
|
|
|
|
type A string //@A
|
|
|
|
func AStuff() { //@AStuff
|
|
x := 5
|
|
Random2(x) //@godef("dom2", Random2)
|
|
Random() //@godef("()", Random)
|
|
|
|
var err error //@err
|
|
fmt.Printf("%v", err) //@godef("err", err)
|
|
|
|
var y string //@string,hover("string", string)
|
|
_ = make([]int, 0) //@make,hover("make", make)
|
|
}
|