31 lines
384 B
Go
31 lines
384 B
Go
|
package nestedcall
|
||
|
|
||
|
import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/nestedcall/inner"
|
||
|
|
||
|
// X is what we use.
|
||
|
const X = 42
|
||
|
|
||
|
// N returns inner.A().
|
||
|
func N() int {
|
||
|
return inner.Return65()
|
||
|
}
|
||
|
|
||
|
// F calls G.
|
||
|
func F() int {
|
||
|
a := 1
|
||
|
return G() + a
|
||
|
}
|
||
|
|
||
|
// G calls x and returns y().
|
||
|
func G() int {
|
||
|
x()
|
||
|
z := 3
|
||
|
return y() + z
|
||
|
}
|
||
|
|
||
|
func x() {}
|
||
|
func y() int {
|
||
|
tmp := 10
|
||
|
return tmp
|
||
|
}
|