check for 0=1 in typechecker

This commit is contained in:
rhiannon morris 2023-02-19 17:51:44 +01:00
parent 195791e158
commit 858b5db530
5 changed files with 95 additions and 55 deletions

View file

@ -384,7 +384,7 @@ tests = "equality & subtyping" :- [
testEq "a𝟎 = a" $
equalED 1 empty (DCloE (F "a") (K Zero ::: id)) (F "a"),
testEq "(f [a])𝟎 = f𝟎 [a]𝟎" $
let th = (K Zero ::: id) in
let th = K Zero ::: id in
equalED 1 empty
(DCloE (F "f" :@ FT "a") th)
(DCloE (F "f") th :@ DCloT (FT "a") th)