aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMatthieu Sozeau2019-01-24 15:41:04 +0100
committerMatthieu Sozeau2019-01-24 15:41:04 +0100
commit19c6007a003f3ec6d2d92b1ca213270ff16b58fb (patch)
tree1d7ea94c23c0b5d5b5ea81364095adfcaf6079e6 /test-suite
parentea6c157e7a47039d2c1505e896dbdd099a0da450 (diff)
parenta9fb1b03f50b7ac2d5a273b44f64ce49bc42db60 (diff)
Merge PR #9377: [CS] recognize applied primitive projections as keys (fix #9375)
Ack-by: SkySkimmer Ack-by: gares Reviewed-by: mattam82 Ack-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_9375.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9375.v b/test-suite/bugs/closed/bug_9375.v
new file mode 100644
index 0000000000..a2bfbafe06
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9375.v
@@ -0,0 +1,16 @@
+Set Primitive Projections.
+
+Record toto : Type := Toto {
+ toto1 : Type;
+ toto2 : toto1 -> Type
+}.
+
+Record tata := Tata {
+ tata1 : Type
+}.
+
+Canonical Structure tata_toto (x : toto) X :=
+ Tata (toto2 x X).
+
+Check fun (T : toto) (t : toto1 T) =>
+ (eq_refl _ : @tata1 _ = @toto2 _ t).