test-suite/bugs/bug_20599.v
raw| 1 | Variant T : nat -> Set := |
| 2 | | T1 : forall {n}, T (S n). |
| 3 | |
| 4 | Definition TS {n : nat} (t : T n) : (T (S n)) := T1. |
| 5 | |
| 6 | Declare Scope t_scope. |
| 7 | |
| 8 | Number Notation T Nat.of_num_uint Nat.to_num_uint |
| 9 | (via nat |
| 10 | mapping [[T1] => O, [TS] => S]) : t_scope. |
| 11 | |
| 12 | Open Scope t_scope. |
| 13 | |
| 14 | Fail Definition test := 0. (** Error: Anomaly "Uncaught exception Option.IsNone." **) |