Use actual outer scope for function-bang calls.

This commit is contained in:
Stephen Chung
2021-11-14 22:48:57 +08:00
parent dc918447b6
commit 615c3acad6
7 changed files with 67 additions and 19 deletions

View File

@@ -517,7 +517,7 @@ impl<'a> Scope<'a> {
/// Shadowed variables are omitted in the copy.
#[inline]
#[must_use]
pub(crate) fn clone_visible(&self) -> Self {
pub fn clone_visible(&self) -> Self {
let mut entries = Self::new();
self.names