blob: 5f1e09a88b90eabd799841ec0a64f1cea039cb6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
env GO111MODULE=off
# Issue 17119: Test more duplicate load errors.
! go build dupload
! stderr 'duplicate load|internal error'
stderr 'dupload/vendor/p must be imported as p'
-- dupload/dupload.go --
package main
import (
_ "dupload/p2"
_ "p"
)
func main() {}
-- dupload/p/p.go --
package p
-- dupload/p2/p2.go --
package p2
import _ "dupload/vendor/p"
-- dupload/vendor/p/p.go --
package p
|