summaryrefslogtreecommitdiff
path: root/dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt
diff options
context:
space:
mode:
authorNadrieril2020-06-25 14:28:48 +0100
committerNadrieril2020-06-25 15:12:10 +0100
commitac7e39a752c41c06155e27e84404c67c1341065d (patch)
tree67b45b7efcf93abd3efa33b1d01fe4349ed3037b /dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt
parent75929b8a3ca99ead6e10365439c40d2fe86dfe55 (diff)
spec!: remove Optional/build and Optional/fold
Diffstat (limited to 'dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt')
-rw-r--r--dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt b/dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt
new file mode 100644
index 0000000..6e360da
--- /dev/null
+++ b/dhall/tests/type-inference/failure/unit/LetWithNonterminatingAnnotation.txt
@@ -0,0 +1,12 @@
+Type error: error: expected function, found `Natural`
+ --> <current file>:6:25
+ |
+ 1 | -- When you check if an inferred type is equivalent to an annotation,
+ 2 | -- you must alpha-beta-normalize both sides first. But it is not safe
+ 3 | -- to beta-normalise an expression which hasn't first been
+ 4 | -- typechecked.
+...
+10 | let a
+11 | : (λ(x : Natural) → x x) (λ(x : Natural) → x x)
+ | ^ function application requires a function
+ |