mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-01 13:49:13 +00:00
15 lines
305 B
Go
15 lines
305 B
Go
|
package globalvar
|
||
|
|
||
|
// Unused shouldn't produce any initialization code if it's not used anywhere.
|
||
|
var Unused = 3
|
||
|
|
||
|
// Default is initialized by default value.
|
||
|
var Default int
|
||
|
|
||
|
// A initialized by function call, thus the initialization code should always be emitted.
|
||
|
var A = f()
|
||
|
|
||
|
func f() int {
|
||
|
return 5
|
||
|
}
|