| 1 |
Regression test for crash in hover on an alias to a built-in named type. |
| 2 |
|
| 3 |
-- flags -- |
| 4 |
-skip_goarch=386,arm |
| 5 |
|
| 6 |
-- go.mod -- |
| 7 |
module example.com |
| 8 |
|
| 9 |
go 1.18 |
| 10 |
|
| 11 |
-- a/a.go -- |
| 12 |
package a |
| 13 |
|
| 14 |
type A = error //@hover("A", "A", out) |
| 15 |
|
| 16 |
-- @out -- |
| 17 |
```go |
| 18 |
type A = error // size=16 (0x10) |
| 19 |
|
| 20 |
type error interface { |
| 21 |
Error() string |
| 22 |
} |
| 23 |
``` |
| 24 |
|
| 25 |
--- |
| 26 |
|
| 27 |
@hover("A", "A", out) |
| 28 |
|
| 29 |
|
| 30 |
```go |
| 31 |
func (error) Error() string |
| 32 |
``` |
| 33 |
|
| 34 |
--- |
| 35 |
|
| 36 |
[`a.A` on pkg.go.dev](https://pkg.go.dev/example.com/a#A) |