aboutsummaryrefslogtreecommitdiff
path: root/src/Compilers/Named
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-10-17 15:41:01 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-10-17 15:41:01 -0400
commit697505eea7a0a41086ad4775ccb7b244503940b6 (patch)
tree5cb64f786c4d844737c3fc93d685a5d0931164d2 /src/Compilers/Named
parent087c6ec0b0584b2da9de6537a3e97b2411745db4 (diff)
Fix some type annotations for better non-unfolding
Diffstat (limited to 'src/Compilers/Named')
-rw-r--r--src/Compilers/Named/Context.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilers/Named/Context.v b/src/Compilers/Named/Context.v
index f63172de4..fd84e5b94 100644
--- a/src/Compilers/Named/Context.v
+++ b/src/Compilers/Named/Context.v
@@ -30,7 +30,7 @@ Section language.
:= match t return interp_flat_type (fun _ => Name) t -> interp_flat_type var t -> Context with
| Tbase t => fun n v => extendb ctx n v
| Unit => fun _ _ => ctx
- | Prod A B => fun n v
+ | Prod A B => fun n v : interp_flat_type _ A * interp_flat_type _ B
=> let ctx := @extend A ctx (fst n) (fst v) in
let ctx := @extend B ctx (snd n) (snd v) in
ctx
@@ -42,7 +42,7 @@ Section language.
:= match t return interp_flat_type (fun _ => Name) t -> Context with
| Tbase t => fun n => removeb t ctx n
| Unit => fun _ => ctx
- | Prod A B => fun n
+ | Prod A B => fun n : interp_flat_type _ A * interp_flat_type _ B
=> let ctx := @remove A ctx (fst n) in
let ctx := @remove B ctx (snd n) in
ctx