summaryrefslogtreecommitdiff
path: root/dhall/tests/type-errors/unit/MergeHandlerNotMatchAlternativeType.txt
blob: ae36eeff5b71ae9dc1735d233765c0adc6bc2688 (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@NF { value: AppliedBuiltin(Bool, []), type: Type }