From 0d4e033c7ca301f03453210fdef345bdf8018892 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 24 Jan 2020 17:12:22 +0000 Subject: Update type-errors --- dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt') diff --git a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt index 3bb1492..8507ccf 100644 --- a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt +++ b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt @@ -4,10 +4,10 @@ 1 | (λ(_ : Natural) → _) True␊ | ^--^ | - = This argument has type Value@WHNF { value: AppliedBuiltin(Bool, []), type: Type } + = This argument has type Value@WHNF { value: AppliedBuiltin(Bool, [], []), type: Type } --> 1:8 | 1 | (λ(_ : Natural) → _) True␊ | ^-----^ | - = But the function expected an argument of type Value@NF { value: AppliedBuiltin(Natural, []), type: Type } + = But the function expected an argument of type Value@NF { value: AppliedBuiltin(Natural, [], []), type: Type } -- cgit v1.2.3 From 8c64ae33149db4edaaa89d2d187baf10a2b9f8bf Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 25 Jan 2020 13:29:27 +0000 Subject: Make most type errors stringy --- .../unit/FunctionApplicationArgumentNotMatch.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt') diff --git a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt index 8507ccf..9342fd8 100644 --- a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt +++ b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt @@ -1,13 +1 @@ -[unknown location] Type error: Wrong type of function argument - --> 1:22 - | -1 | (λ(_ : Natural) → _) True␊ - | ^--^ - | - = This argument has type Value@WHNF { value: AppliedBuiltin(Bool, [], []), type: Type } - --> 1:8 - | -1 | (λ(_ : Natural) → _) True␊ - | ^-----^ - | - = But the function expected an argument of type Value@NF { value: AppliedBuiltin(Natural, [], []), type: Type } +Type error: Unhandled error: TypeMismatch -- cgit v1.2.3 From 1e466a20533d936f44430b1bc18508cd00e5ccd2 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 29 Jan 2020 18:48:19 +0000 Subject: Use TyExpr in Typed --- dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt') diff --git a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt index 9342fd8..8d101c3 100644 --- a/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt +++ b/dhall/tests/type-errors/unit/FunctionApplicationArgumentNotMatch.txt @@ -1 +1 @@ -Type error: Unhandled error: TypeMismatch +Type error: Unhandled error: function annot mismatch: (True : Bool) : Natural -- cgit v1.2.3