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

     1  package foo
     2  
     3  // NewBar return an integer \o/
     4  func NewBar() int {
     5  	return 10
     6  }
     7  
     8  // Dummy is dummy variable.
     9  var Dummy = 1
    10  
    11  // Foo is a type.
    12  type Foo struct{}
    13  
    14  // Bar is a function.
    15  func Bar() int {
    16  	return 1
    17  }
    18  
    19  // Bar is a method.
    20  func (f Foo) Bar() int {
    21  	return 8
    22  }