From 50c948480647af3c5aaea5f80fa9f3341471f2b0 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Tue, 13 Feb 2018 12:19:47 +0100 Subject: Fixing an anomaly in the presence of "let-in" in the type of a record. Was raised by Jason on Gitter. --- test-suite/success/Inductive.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-suite/success') diff --git a/test-suite/success/Inductive.v b/test-suite/success/Inductive.v index 893d75b77..5b1482fd5 100644 --- a/test-suite/success/Inductive.v +++ b/test-suite/success/Inductive.v @@ -200,3 +200,9 @@ Module NonRecLetIn. (fun n b c => f_equal (Rec n) eq_refl) 0 (Rec 0 (Base 1)). End NonRecLetIn. + +(* Test treatment of let-in in the definition of Records *) +(* Should fail with "Sort expected" *) + +Fail Inductive foo (T : Type) : let T := Type in T := + { r : forall x : T, x = x }. -- cgit v1.2.3