mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 19:02:28 +00:00
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>
This commit is contained in:
parent
babd84ec10
commit
7009417325
6 changed files with 36 additions and 8 deletions
7
pkg/compiler/testdata/multi/file2.go
vendored
Normal file
7
pkg/compiler/testdata/multi/file2.go
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
package multi
|
||||
|
||||
var SomeVar30 = 30
|
||||
|
||||
func Sum() int {
|
||||
return SomeVar12 + SomeVar30
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue