neo-go/pkg/compiler/testdata/foo/foo.go
Evgeniy Stratonikov 1d6d7206e9 compiler: inline expressions with type conversions, fix #1879
Don't count `string(data)` or `[]byte(data)` as function calls.
2021-06-04 11:08:00 +03:00

22 lines
268 B
Go

package foo
// NewBar return an integer \o/
func NewBar() int {
return 10
}
// Dummy is dummy constant.
var Dummy = 1
// Foo is a type.
type Foo struct{}
// Bar is a function.
func Bar() int {
return 1
}
// Bar is a method.
func (f Foo) Bar() int {
return 8
}