Add object-oriented records example

This commit is contained in:
Michael Schimmel
2026-02-26 21:54:26 +01:00
parent bf74795e01
commit 512193febc
4 changed files with 96 additions and 4 deletions
+1 -3
View File
@@ -159,9 +159,7 @@ impl UsageInfo {
pub fn collect_pattern(&mut self, node: &AnalyzedNode) {
match &node.kind {
BoundKind::Define { addr, .. } => {
self.assigned.insert(*addr);
}
BoundKind::Define { .. } => {}
BoundKind::Set { addr, .. } => {
self.assigned.insert(*addr);
}