github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/compiler/testdata/globalvar/nested3/main.go (about)

     1  package nested3
     2  
     3  // Argument is used as a function argument.
     4  var Argument = 34
     5  
     6  // Anna is used to check struct-related usage analyzer logic (calls to methods
     7  // and fields).
     8  var Anna = Person{Age: 24}
     9  
    10  // Person is an auxiliary structure containing simple field.
    11  type Person struct {
    12  	Age int
    13  }
    14  
    15  // GetAge is used to check method calls inside usage analyzer.
    16  func (p Person) GetAge() int {
    17  	return p.Age
    18  }