Skip to content

Commit f7e2b56

Browse files
committed
Update SystemF Expression test
1 parent b018774 commit f7e2b56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Language/SystemF/ExpressionSpec.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ spec = describe "prettyPrint" $ do
7373
prettyPrint (TyForAll "A" (TyArrow (TyVar "A") (TyVar "A")))
7474
`shouldBe` "forall A. A -> A"
7575

76+
it "prints nested forall types" $
77+
prettyPrint (TyForAll "W"
78+
(TyForAll "X"
79+
(TyArrow (TyVar "W") (TyArrow (TyVar "X") (TyVar "Y")))))
80+
`shouldBe` "forall W. forall X. W -> X -> Y"
81+

0 commit comments

Comments
 (0)