neoneo-go/pkg/compiler/testdata/block/block.go
Evgenii Stratonikov ed45ff98e3 compiler: process interop together with package
Closes #913.
Provide package info in the funcScope to check if function is defined
insided an interop package. As a good side-effect bytecode for builtins from `util`
is no longer emitted.

Related #941.
2020-06-09 12:41:33 +03:00

9 lines
183 B
Go

package block
// Block is opaque type.
type Block struct{}
// GetTransactionCount is a mirror of `GetTransactionCount` interop.
func GetTransactionCount(b Block) int {
return 42
}