Debian Codegraph @

test-suite/bugs/bug_15843.v

raw
1 Coercion nat_of_option (u : option nat) : nat :=
2 match u with Some u => u | None => 0 end.
3
4 Number Notation nat Nat.of_num_int Nat.to_num_int : nat_scope.
5
6 Check 3. (* should be "3 : nat" and not "Some 3 : option nat" *)
7
8 Check eq_refl : 3 = S (S (S O)).