aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-04-17 09:25:45 +0200
committerPierre-Marie Pédrot2020-04-17 09:25:45 +0200
commit422b82a7a8b25bd7893f8a7ca8655dff9c781072 (patch)
tree48d72b8fe9aaacf2bce90948e21d265ab717b3b5 /test-suite
parent9cd0c1d0b62715dc0c709634372c00cd3b50ebb6 (diff)
parent730f21fb1b6329b9c16dd0021f5a8e2d573fcaae (diff)
Merge PR #11135: Simplifying the code declaring the constants bound to primitive projections
Ack-by: SkySkimmer Ack-by: ejgallego Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/output/Projections.out15
-rw-r--r--test-suite/output/Projections.v9
2 files changed, 24 insertions, 0 deletions
diff --git a/test-suite/output/Projections.out b/test-suite/output/Projections.out
index e9c28faf1d..1dd89c9bcd 100644
--- a/test-suite/output/Projections.out
+++ b/test-suite/output/Projections.out
@@ -1,2 +1,17 @@
fun S : store => S.(store_funcs)
: store -> host_func
+a =
+fun A : Type =>
+let B := A in fun (C : Type) (u : U A C) => (A, B, C, c _ _ u)
+ : forall A : Type,
+ let B := A in
+ forall C : Type, U A C -> Type * Type * Type * (B * A * C)
+
+Arguments a (_ _)%type_scope
+b =
+fun A : Type => let B := A in fun (C : Type) (u : U A C) => b _ _ u
+ : forall A : Type,
+ let B := A in
+ forall (C : Type) (u : U A C), (A, B, C, c _ _ u) = (A, B, C, c _ _ u)
+
+Arguments b (_ _)%type_scope
diff --git a/test-suite/output/Projections.v b/test-suite/output/Projections.v
index 14d63d39c4..83a581338f 100644
--- a/test-suite/output/Projections.v
+++ b/test-suite/output/Projections.v
@@ -10,3 +10,12 @@ Section store.
End store.
Check (fun (S:@store nat) => S.(store_funcs)).
+
+Module LocalDefUnfolding.
+
+Unset Printing Projections.
+Record U A (B:=A) C := {c:B*A*C;a:=(A,B,C,c);b:a=a}.
+Print a.
+Print b.
+
+End LocalDefUnfolding.