feat: add stable executable knowledge symbols
This commit is contained in:
1 parent
92de46aca4
commit
0bbe735c3c
13 files changed
+841
-40
No files matched your search
+1
-1
@@ -1404,7 +1404,7 @@ impl Interpreter {
|
||||
.ok_or_else(|| self.err(format!("unknown `{display}`")))?;
|
||||
}
|
||||
|
||||
if parent_is_object && !node.is_object() {
|
||||
if parent_is_object && !node.is_object() && crate::ast::function_uses_receiver(node) {
|
||||
return Err(self.err(format!(
|
||||
"`{display}` is an instance method; call it as `var`.{}",
|
||||
node.name
|
||||
|
||||
Reference in new issue
Block a user