summaryrefslogtreecommitdiff
path: root/dhall/tests/type-inference/failure/hurkensParadox.txt
diff options
context:
space:
mode:
authorNadrieril Feneanar2020-02-09 20:12:13 +0000
committerGitHub2020-02-09 20:12:13 +0000
commit75889ac64e2d04dfd7c00fc59e29e4530e69cc9a (patch)
treecf28b0104879bd73802c4a21c4ca76b298d1cb04 /dhall/tests/type-inference/failure/hurkensParadox.txt
parent5abc0628058a318782c46614d943c034711845c6 (diff)
parent4c2a28b844b18d7b67278a1c8f628d9a95ea37c4 (diff)
Merge pull request #130 from Nadrieril/improve-tests
Improve the test harness
Diffstat (limited to 'dhall/tests/type-inference/failure/hurkensParadox.txt')
-rw-r--r--dhall/tests/type-inference/failure/hurkensParadox.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/dhall/tests/type-inference/failure/hurkensParadox.txt b/dhall/tests/type-inference/failure/hurkensParadox.txt
new file mode 100644
index 0000000..6b99615
--- /dev/null
+++ b/dhall/tests/type-inference/failure/hurkensParadox.txt
@@ -0,0 +1,15 @@
+Type error: error: wrong type of function argument
+ --> <current file>:6:23
+ |
+ 1 | let bottom : Type = ∀(any : Type) → any
+ 2 |
+ 3 | in let not : Type → Type = λ(p : Type) → p → bottom
+ 4 |
+...
+10 | : pow (pow U) → U
+11 | = λ(t : pow (pow U))
+ | ^^^ this expects an argument of type: Kind
+ | ^ but this has type: Sort
+ |
+ = note: expected type `Kind`
+ found type `Sort`