mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-02 15:44:41 +00:00
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.
This commit is contained in:
parent
795523f5cd
commit
ed45ff98e3
6 changed files with 98 additions and 22 deletions
6
pkg/compiler/testdata/util/equals.go
vendored
Normal file
6
pkg/compiler/testdata/util/equals.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package util
|
||||
|
||||
// Equals is a mirror of `Equals` builtin.
|
||||
func Equals(a, b interface{}) bool {
|
||||
return true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue