From 276ad0f2f2db5e4ddc569da606a6db8873fdec00 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Wed, 14 Oct 2020 17:20:41 +0200 Subject: Fix algebraic on the right when using bidi hints Fix #12970 We can't recover the expected type of the post bidi argument by retyping because the hole may be filled by something in which case retyping can produce algebraic universes. --- test-suite/bugs/closed/bug_12970.v | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test-suite/bugs/closed/bug_12970.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_12970.v b/test-suite/bugs/closed/bug_12970.v new file mode 100644 index 0000000000..69ce7ec2c2 --- /dev/null +++ b/test-suite/bugs/closed/bug_12970.v @@ -0,0 +1,4 @@ +Arguments existT _ & _ _. + +Definition f := fun X (A : X -> Type) (P : forall x, A x -> Type) x y => + existT (fun f => forall x, P x (f x)) x y : sigT (fun f => forall x, P x (f x)). -- cgit v1.2.3