val K : type.
val V : type.
data tuple := pair K V.
data list :=
nil
| cons tuple list.
data option :=
None
| Some V.
rec put : list -> K -> V -> list :=
fun l k v. cons (pair k v) l.
# correct version:
# rec put : list -> K -> V -> list :=
# put = (fun l k v. cons (pair k v) l).
yields
Error: type error:
unification error: incompatible types:
trying to unify `list -> K -> V -> list` and `prop`
Version: nunchaku 0.5.1 70e510138ab0efd037b3351750b2b428a97c890c
The following example
yields
It would be good if a line number was reported.