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:
Evgenii Stratonikov 2020-06-08 14:16:41 +03:00
parent 795523f5cd
commit ed45ff98e3
6 changed files with 98 additions and 22 deletions

6
pkg/compiler/testdata/util/equals.go vendored Normal file
View file

@ -0,0 +1,6 @@
package util
// Equals is a mirror of `Equals` builtin.
func Equals(a, b interface{}) bool {
return true
}