summaryrefslogtreecommitdiff
path: root/dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt
diff options
context:
space:
mode:
authorNadrieril2020-02-23 20:56:03 +0000
committerNadrieril2020-03-05 15:58:31 +0000
commit73af29fb11517f85043d8a866697b150dc7c2191 (patch)
treeaf401099a71c67a647ad5942ae06ff172f4a63c9 /dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt
parentb7f6c5778c3c980a452abd3da715996fa24d4449 (diff)
Add a bunch of tests
Diffstat (limited to 'dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt')
-rw-r--r--dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt b/dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt
new file mode 100644
index 0000000..bcc44a5
--- /dev/null
+++ b/dhall/tests/type-inference/failure/unit/FunctionTypeOutputTypeNotAType.txt
@@ -0,0 +1,7 @@
+Type error: error: Expected a type, found: `1`
+ --> <current file>:1:8
+ |
+1 | Bool -> 1
+ | ^ this has type: `Natural`
+ |
+ = help: An expression in type position must have type `Type`, `Kind` or `Sort`