neoneo-go/pkg/compiler/testdata/importcycle/pkg2/pkg2.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

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
}