diff options
| author | Hugo Herbelin | 2020-02-10 15:50:43 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2020-02-11 13:05:48 +0100 |
| commit | d310030a70c972bd6d4fd23b979a7cfd809e000f (patch) | |
| tree | 4a3e63459baa70c15682fe6b0e6604cc729a0be7 /kernel/nativevalues.ml | |
| parent | 4c6c173447d5b7d04aa0fd4f51d27a078c675708 (diff) | |
Small improvement to "fix"/"cofix" printing rule.
Set Implicit Arguments.
Set Contextual Implicit.
Inductive option A := None | Some (a:A).
Coercion some_nat := @Some nat.
Check fix f x := match x with 0 => None | n => some_nat n end.
gives:
fix f (x : nat) : option nat :=
match x with
| 0 => None (A:=nat)
| S _ => some_nat x
end
See discussion at
https://github.com/coq/coq/pull/11142/files/718c1422954794e0e33a87cf4c9111c00cc186dd#r377054717
Diffstat (limited to 'kernel/nativevalues.ml')
0 files changed, 0 insertions, 0 deletions
