summaryrefslogtreecommitdiff
path: root/test-suite/success/Projection.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/Projection.v')
-rw-r--r--test-suite/success/Projection.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/test-suite/success/Projection.v b/test-suite/success/Projection.v
index d8faa88a..3ffd41ea 100644
--- a/test-suite/success/Projection.v
+++ b/test-suite/success/Projection.v
@@ -1,3 +1,9 @@
+Record foo (A : Type) := { B :> Type }.
+
+Lemma bar (f : foo nat) (x : f) : x = x.
+ destruct f. simpl B. simpl B in x.
+Abort.
+
Structure S : Type := {Dom : Type; Op : Dom -> Dom -> Dom}.
Check (fun s : S => Dom s).