diff options
| author | Enrico Tassi | 2019-01-22 10:39:50 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-01-22 10:40:16 +0100 |
| commit | a9fb1b03f50b7ac2d5a273b44f64ce49bc42db60 (patch) | |
| tree | 2f81a41ef884e09da1274a00bd76a1f9f1336888 /test-suite | |
| parent | b8da6225e3867408f5d1ad0c716618c4228a1ad2 (diff) | |
[CS] recognize applied primitive projections as keys (fix #9375)
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_9375.v | 16 |
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). |
