recognise nats other than 0 in eq checker

This commit is contained in:
rhiannon morris 2023-12-21 17:48:12 +01:00
parent 0fdd4741be
commit 7afcbfe258
1 changed files with 4 additions and 4 deletions

View File

@ -305,7 +305,7 @@ namespace Term
(E _, Nat 0 {}) => clashT s.loc ctx nat s t
(E _, Succ {}) => clashT s.loc ctx nat s t
(Nat 0 {}, t) => wrongType t.loc ctx nat t
(Nat {}, t) => wrongType t.loc ctx nat t
(Succ {}, t) => wrongType t.loc ctx nat t
(E _, t) => wrongType t.loc ctx nat t
(s, _) => wrongType s.loc ctx nat s