diff options
| author | tslil <tslil@posteo.de> | 2026-05-06 20:43:00 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-05-06 22:42:00 +0100 |
| commit | fb5ba7fb62f4ce75f307233d5ffb438243f353b6 (patch) | |
| tree | 35b489025f7accfb73e40e2d8dad46ef1b4f2963 /src/checker_set.rs | |
| parent | d682ad6bbb5547ffbcc19da90275ff43e4e03e20 (diff) | |
fixing ...
Diffstat (limited to 'src/checker_set.rs')
| -rw-r--r-- | src/checker_set.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/checker_set.rs b/src/checker_set.rs index 1a89631..83d97a1 100644 --- a/src/checker_set.rs +++ b/src/checker_set.rs @@ -103,13 +103,15 @@ impl CheckerState { } Element::Var(v) => { let lookup = self.lookup_element(&v)?; + let container = self.check_set(&lookup.container)?; // TODO: necessary why? + // we have previously done the work to discover the type of // this element, so what we're claiming now must match! - if !self.equal(set, &lookup.container) { + if !self.equal(set, &container) { return Err(CheckerError::WrongSetForElement { value: element.clone().into(), claimed: set.clone(), - real: lookup.container.clone(), + real: container, }); } // If we found a formal binding, we have no value to report. |
