neoneo-go/pkg/compiler/testdata/multi/file2.go
Evgenii Stratonikov 7009417325 compiler: allow to declare global variables in multiple files
Traverse and count globals across all used files.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2020-07-31 12:06:42 +03:00

7 lines
84 B
Go

package multi
var SomeVar30 = 30
func Sum() int {
return SomeVar12 + SomeVar30
}