tutus-chain/pkg/compiler/testdata/globalvar/funccall/main.go

19 lines
564 B
Go
Executable File

package funccall
import (
"git.marketally.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested1"
"git.marketally.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested2"
alias "git.marketally.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested3"
)
// F should be called from the main package to check usage analyzer against
// nested constructions handling.
func F() int {
return nested1.F(nested2.Argument + alias.Argument)
}
// GetAge calls method on the global struct.
func GetAge() int {
return alias.Anna.GetAge()
}