Fix test error message
This commit is contained in:
parent
9870802371
commit
05ea23d22c
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ rpuType typ = do
|
|||
where
|
||||
go tvars = \case
|
||||
TAll tvar t
|
||||
| tvar `elem` tvars -> throwError "Duplicate forall"
|
||||
| tvar `elem` tvars -> throwError "Unused forall"
|
||||
| otherwise -> go (tvar : tvars) t
|
||||
TVar tvar -> pure (delete tvar tvars)
|
||||
TFun t1 t2 -> go tvars t1 >>= (`go` t2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue