Skip to content

Commit

Permalink
Fix the type sanity test in genprimopcode's Syntax.hs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
igfoo committed Nov 17, 2010
1 parent d78bbf9 commit 251ef22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/genprimopcode/Syntax.hs
Expand Up @@ -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 _ _
Expand Down

0 comments on commit 251ef22

Please sign in to comment.