Validate declared class fields at construction and attribute writes

This commit is contained in:
2026-10-22 11:44:09 +08:00
parent 6346041f77
commit 20e29e3c5a
13 changed files with 342 additions and 26 deletions
+1
View File
@@ -21,6 +21,7 @@ impl Vm {
"configure source type checks during read-only call",
));
}
self.objects.set_field_type_checks(enabled)?;
self.source_type_checks = enabled;
Ok(())
}