diff --git a/src/scope.rs b/src/scope.rs index 733b9cd..b6b82cd 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -66,6 +66,9 @@ impl Scope { } fn fn_exists(&self, name: &Identifier) -> bool { + if self.functions.is_empty() { + return false; + } self.functions.contains_key(name) }