compiler: allow to alias interop packages

Fix #397.
This commit is contained in:
Evgenii Stratonikov 2020-08-19 10:10:40 +03:00
parent 36ce23789a
commit 181569c2a1
3 changed files with 28 additions and 2 deletions

View file

@ -226,7 +226,7 @@ func isSyscall(fun *funcScope) bool {
if fun.selector == nil || fun.pkg == nil || !isInteropPath(fun.pkg.Path()) {
return false
}
_, ok := syscalls[fun.selector.Name][fun.name]
_, ok := syscalls[fun.pkg.Name()][fun.name]
return ok
}