| 1 |
Regtest for https://github.com/golang/go/issues/67281 |
| 2 |
|
| 3 |
-- go.mod -- |
| 4 |
module example.com |
| 5 |
go 1.19 |
| 6 |
|
| 7 |
-- main/main.go -- |
| 8 |
package main |
| 9 |
|
| 10 |
import "example.com/a" |
| 11 |
|
| 12 |
func main() { |
| 13 |
a.A() //@ inline(re"A", result) |
| 14 |
} |
| 15 |
|
| 16 |
-- a/a.go -- |
| 17 |
package a |
| 18 |
|
| 19 |
import "example.com/other/a" |
| 20 |
|
| 21 |
func A() { |
| 22 |
a.A() |
| 23 |
} |
| 24 |
|
| 25 |
-- other/a/a.go -- |
| 26 |
package a |
| 27 |
|
| 28 |
func A() { |
| 29 |
} |
| 30 |
|
| 31 |
-- result -- |
| 32 |
package main |
| 33 |
|
| 34 |
import "example.com/other/a" |
| 35 |
|
| 36 |
func main() { |
| 37 |
a.A() //@ inline(re"A", result) |
| 38 |
} |