diff options
author | Nadrieril | 2020-02-02 17:22:27 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-02 17:22:27 +0000 |
commit | d8c3ced0f1acb1924c801fadbfd3077dede9b0dd (patch) | |
tree | 1884b1c33faf2c104c6b71ea8a6fd2472826da48 /dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt | |
parent | 92bbea48f9a0380a614f2687c73d55a67ff9294e (diff) |
More errors
Diffstat (limited to 'dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt')
-rw-r--r-- | dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt b/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt index 8b729a4..1762a7c 100644 --- a/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt +++ b/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt @@ -1 +1,9 @@ -Type error: Unhandled error: MergeHandlerTypeMismatch +Type error: Unhandled error: error: Wrong handler input type + --> <current file>:1:0 + | +1 | merge { x = λ(_ : Bool) → _ } (< x : Natural >.x 1) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this merge expression + | ^^^^^^^^^^^^^^^^^^^ the handler `x` expects a value of type: `Bool` + | ^^^^^^^^^^^^^^^^^ but the corresponding variant has type: `Natural` + | + = help: only functions can be applied to |