summaryrefslogtreecommitdiff
path: root/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
blob: 3f6c6a68a57172a40e456b3978775377a9f57c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 }