forked from TrueCloudLab/neoneo-go
eade327b9b
Unfortunately, when import cycle happens somewhere deep in the import chain we dont't get an error from packages.Load(). But it leaves some imports uninitialized, so at least we can check for them. Signed-off-by: Roman Khimov <roman@nspcc.ru>
11 lines
135 B
Go
11 lines
135 B
Go
package pkg2
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg3"
|
|
)
|
|
|
|
var A int
|
|
|
|
func init() {
|
|
pkg3.A = 2
|
|
}
|