From b33e1fc80bb0e7191c1ea3378569ed8c0fe4af6d Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 11 Nov 2019 18:20:52 +0000 Subject: Add more detail to TypeMismatch error --- .../type-errors/unit/MergeHandlerNotMatchAlternativeType.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt') 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 } -- cgit v1.2.3