diff options
author | 2017-11-03 10:54:11 +0100 | |
---|---|---|
committer | 2017-11-03 10:54:11 +0100 | |
commit | 97e82c1a520382ec34cfedcc55b5190126b05703 (patch) | |
tree | d3cb12a29b9d90db3063f2488cba4961b8b46c81 /test-suite | |
parent | 22c3a0edacef219206ad216b3cce2aa73d9ce2a6 (diff) | |
parent | de7d2fdb97975dcd94005bb6fa79a312c8afa017 (diff) |
Merge PR #6037: Fixing #5401 (printing of patterns with bound anonymous variables).
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/bugs/closed/5401.v | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5401.v b/test-suite/bugs/closed/5401.v new file mode 100644 index 000000000..95193b993 --- /dev/null +++ b/test-suite/bugs/closed/5401.v @@ -0,0 +1,21 @@ +(* Testing printing of bound unnamed variables in pattern printer *) + +Module A. +Parameter P : nat -> Type. +Parameter v : forall m, P m. +Parameter f : forall (P : nat -> Type), (forall a, P a) -> P 0. +Class U (R : P 0) (m : forall x, P x) : Prop. +Instance w : U (f _ (fun _ => v _)) v. +Print HintDb typeclass_instances. +End A. + +(* #5731 *) + +Module B. +Axiom rel : Type -> Prop. +Axiom arrow_rel : forall {A1}, A1 -> rel A1. +Axiom forall_rel : forall E, (forall v1 : Type, E v1 -> rel v1) -> Prop. +Axiom inl_rel: forall_rel _ (fun _ => arrow_rel). +Hint Resolve inl_rel : foo. +Print HintDb foo. +End B. |