feat: add stable executable knowledge symbols

This commit is contained in:
cflmy committed 2026-10-23 08:24:10 +00:00
1 parent 92de46aca4
commit 0bbe735c3c
13 files changed
+841 -40

No files matched your search

+1 -1
View File
@@ -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