aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMatthieu Sozeau2016-03-14 19:50:29 +0100
committerMatthieu Sozeau2016-03-15 15:28:13 +0100
commit779fd5d9a4982b19fd257b61f444ae8e6155dcbe (patch)
tree9073f67d279fa70732cc7ac2f1dde846e37175bf /test-suite
parente171456870f9893d582d53114d4f87e634c007e5 (diff)
Fix bug when a sort is ascribed to a Record
Forcefully equating it to the inferred level is not always desirable or possible.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/univers.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/success/univers.v b/test-suite/success/univers.v
index e00701fb68..269359ae62 100644
--- a/test-suite/success/univers.v
+++ b/test-suite/success/univers.v
@@ -60,3 +60,20 @@ Qed.
(* Submitted by Danko Ilik (bug report #1507); related to LetIn *)
Record U : Type := { A:=Type; a:A }.
+
+(** Check assignement of sorts to inductives and records. *)
+
+Variable sh : list nat.
+
+Definition is_box_in_shape (b :nat * nat) := True.
+Definition myType := Type.
+
+Module Ind.
+Inductive box_in : myType :=
+ myBox (coord : nat * nat) (_ : is_box_in_shape coord) : box_in.
+End Ind.
+
+Module Rec.
+Record box_in : myType :=
+ BoxIn { coord :> nat * nat; _ : is_box_in_shape coord }.
+End Rec. \ No newline at end of file