neo-go/pkg/compiler/testdata/importcycle/pkg1/pkg1.go
Roman Khimov eade327b9b compiler: check for pkg nilness, fix #3202
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>
2023-11-21 21:47:51 +03:00

9 lines
130 B
Go

package pkg1
import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg2"
var A int
func init() {
pkg2.A = 1
}