neoneo-go/pkg/compiler/testdata/pkg3/pkg3.go
Evgenii Stratonikov 439d9ff94d compiler: initialize packages according to go spec
`init()` functions should be called during package initialization,
after global variables were processed.
2020-08-05 11:15:07 +03:00

7 lines
48 B
Go

package pkg3
var A int
func init() {
A = 3
}