mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-03 03:58:36 +00:00
19 lines
407 B
Go
19 lines
407 B
Go
|
package nested3
|
||
|
|
||
|
// Argument is used as a function argument.
|
||
|
var Argument = 34
|
||
|
|
||
|
// Anna is used to check struct-related usage analyzer logic (calls to methods
|
||
|
// and fields).
|
||
|
var Anna = Person{Age: 24}
|
||
|
|
||
|
// Person is an auxiliary structure containing simple field.
|
||
|
type Person struct {
|
||
|
Age int
|
||
|
}
|
||
|
|
||
|
// GetAge is used to check method calls inside usage analyzer.
|
||
|
func (p Person) GetAge() int {
|
||
|
return p.Age
|
||
|
}
|