diff options
| author | tslil <tslil@posteo.de> | 2026-04-29 14:18:12 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-29 16:21:20 +0100 |
| commit | 87266db229c7f14527c85b06abcf074cf861f6f9 (patch) | |
| tree | ff708df2ef9c5529d469c948aa9744a56d96c308 /src/checker.rs | |
| parent | cafb3a62af10bb09f8489ba0ab07258a70a75664 (diff) | |
implement canonicalisation in case arms, work through first bit of app
Diffstat (limited to 'src/checker.rs')
| -rw-r--r-- | src/checker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker.rs b/src/checker.rs index dc3dc3c..f3c5205 100644 --- a/src/checker.rs +++ b/src/checker.rs @@ -33,7 +33,7 @@ impl CheckerState { Decl::Signature { name, signature } => { self.assert_unbound_signature(name)?; let signature = self.check_signature(signature.clone())?; - self.add_signature(name, signature) + self.add_signature(name, signature, false) } Decl::Instance { name, @@ -42,7 +42,7 @@ impl CheckerState { } => { self.assert_unbound_instance(name)?; let signature = self.check_signature(signature.clone())?; - let instance = self.check_instance(instance.clone(), &signature)?; + let instance = self.check_instance(instance.clone(), (&signature).into())?; self.add_instance(name.clone(), instance.into(), signature) } }?; |
