diff options
| author | Maxime Dénès | 2017-08-31 12:41:58 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2017-08-31 12:41:58 +0200 |
| commit | f0b9359069de1223b9ffc8fedc557b87f919b24a (patch) | |
| tree | b8f6672b55415afef2ac4eea5789f6e283f7c54c /test-suite | |
| parent | bdfcbceb57cb8d04fea02da39dee6b8e7f75ad29 (diff) | |
| parent | 4bbe2e4e2a9d5dea1a07f8cf0d7e3aeeed609201 (diff) | |
Merge PR #996: Fix BZ#5697: Congruence does not work with primitive projections
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/5697.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5697.v b/test-suite/bugs/closed/5697.v new file mode 100644 index 0000000000..c653f992af --- /dev/null +++ b/test-suite/bugs/closed/5697.v @@ -0,0 +1,19 @@ +Set Primitive Projections. + +Record foo : Type := Foo { foo_car: nat }. + +Goal forall x y : nat, x <> y -> Foo x <> Foo y. +Proof. +intros. +intros H'. +congruence. +Qed. + +Record bar (A : Type) : Type := Bar { bar_car: A }. + +Goal forall x y : nat, x <> y -> Bar nat x <> Bar nat y. +Proof. +intros. +intros H'. +congruence. +Qed. |
