mirror of
https://github.com/Dummi26/mers.git
synced 2026-03-22 23:26:33 +01:00
fix bug where #include included files would be able to access local variables and custom types. now, only globals are shared.
This commit is contained in:
@@ -52,7 +52,7 @@ impl<L: Local> Local for Info<L> {
|
||||
}
|
||||
fn duplicate(&self) -> Self {
|
||||
Self {
|
||||
scopes: self.scopes.iter().map(|v| v.duplicate()).collect(),
|
||||
scopes: vec![self.scopes[0].duplicate()],
|
||||
global: self.global.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user