Add stubs for ValTrait.next

This commit is contained in:
Andrew Morris
2023-05-25 15:19:33 +10:00
parent a20f71a440
commit 35c9699f2b
15 changed files with 73 additions and 1 deletions

View File

@@ -91,6 +91,10 @@ impl ValTrait for NativeFunction {
type_error!("Cannot assign to subscript of native function")
}
fn next(&mut self) -> LoadFunctionResult {
LoadFunctionResult::NotAFunction
}
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "\x1b[36m[Function]\x1b[39m")
}