blob: bd5cfbe3fb272cb8e0095375f9fcd9be42439666 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
cd rundir
! go run x.go sub/sub.go
stderr 'named files must all be in one directory; have . and sub'
! go run sub/sub.go x.go
stderr 'named files must all be in one directory; have sub and .'
cd ../
go run rundir/foo.go ./rundir/bar.go
stderr 'hello world'
-- rundir/sub/sub.go --
package main
-- rundir/x.go --
package main
-- rundir/foo.go --
package main
func main() { println(msg) }
-- rundir/bar.go --
package main
const msg = "hello world"
|