include application test
This commit is contained in:
parent
d701a81172
commit
cb00846b94
7
Algo.hs
7
Algo.hs
|
@ -197,5 +197,8 @@ test1 = typecheck (Abs "A" (Abs "x" (Var "x")))
|
|||
(Pi "A" Type (Pi "x" (Var "A") (Var "A")))
|
||||
|
||||
test2 :: Result
|
||||
test2 = typecheck (Abs "A" (Abs "f" (Abs "x" (App (Var "f") (Var "x")))))
|
||||
(Pi "A" Type (Pi "f" (Pi "_" (Var "A") (Var "A")) (Pi "x" (Var "A") (Var "A"))))
|
||||
test2 = typecheck (Abs "A" (Abs "B" (Abs "f" (Abs "x" (App (Var "f") (Var "x"))))))
|
||||
(Pi "A" Type
|
||||
(Pi "B" (Pi "_" (Var "A") Type)
|
||||
(Pi "f" (Pi "a" (Var "A") (App (Var "B") (Var "a")))
|
||||
(Pi "x" (Var "A") (App (Var "B") (Var "x"))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user