aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/4283.v
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2015-07-09 16:58:06 +0200
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2015-07-09 17:03:28 +0200
commit2c59d19ad207a6bf193e9f0c9d73258b3133d484 (patch)
tree36b64715df91a25e13ca950f5004815976bba371 /test-suite/bugs/closed/4283.v
parente1f5a499c43ec0d7b7ebe696941217fb503e2596 (diff)
Kernel/Checker: Cleanup fixes of substitutions due to let-ins.
Avoid undeeded large substitutions, and add test-suite file for fixed bug 4283 in closed/
Diffstat (limited to 'test-suite/bugs/closed/4283.v')
-rw-r--r--test-suite/bugs/closed/4283.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4283.v b/test-suite/bugs/closed/4283.v
new file mode 100644
index 000000000..e06998b71
--- /dev/null
+++ b/test-suite/bugs/closed/4283.v
@@ -0,0 +1,8 @@
+Require Import Hurkens.
+
+Polymorphic Record box (X : Type) (T := Type) : Type := wrap { unwrap : T }.
+
+Definition unwrap' := fun (X : Type) (b : box X) => let (unwrap) := b in unwrap.
+
+Fail Definition bad : False := TypeNeqSmallType.paradox (unwrap' Type (wrap _ Type)) eq_refl.
+