Skip to content
Snippets Groups Projects
Commit 251ef22f authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix the type sanity test in genprimopcode's Syntax.hs

We assume this is what it's supposed to be checking. Certainly the old
test (t2 == t2) can't be right.
Spotted by Andres Loeh.
parent d78bbf92
No related branches found
No related tags found
No related merge requests found
......@@ -109,8 +109,8 @@ sane_ty Compare (TyF t1 (TyF t2 td))
| t1 == t2 && td == TyApp "Bool" [] = True
sane_ty Monadic (TyF t1 td)
| t1 == td = True
sane_ty Dyadic (TyF t1 (TyF t2 _))
| t1 == t2 && t2 == t2 = True
sane_ty Dyadic (TyF t1 (TyF t2 td))
| t1 == td && t2 == td = True
sane_ty GenPrimOp _
= True
sane_ty _ _
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment