summaryrefslogtreecommitdiff
path: root/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt')
-rw-r--r--dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt b/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
index 69428b8..3f6c6a6 100644
--- a/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
+++ b/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
@@ -1 +1,13 @@
[unknown location] Type error: Wrong type of function argument
+ --> 1:38
+ |
+1 | merge { x = λ(_ : Bool) → _ } (< x : Natural >.x 1)␊
+ | ^-----^
+ |
+ = This argument has type Type
+ --> 1:19
+ |
+1 | merge { x = λ(_ : Bool) → _ } (< x : Natural >.x 1)␊
+ | ^--^
+ |
+ = But the function expected an argument of type Value@WHNF { value: AppliedBuiltin(Bool, []), type: Type }