From 07b7bd7f8358d199b0464a673aec50dedae0a45d Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Wed, 30 Sep 2020 12:50:37 +0200 Subject: Implicit_quantifiers don't use precomputed is_class data Fix #13117 We alternatively could fix the generation of the data with Existing Class but I prefer moving towards removing it. --- test-suite/bugs/closed/bug_13117.v | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test-suite/bugs/closed/bug_13117.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_13117.v b/test-suite/bugs/closed/bug_13117.v new file mode 100644 index 0000000000..5db3f9fadc --- /dev/null +++ b/test-suite/bugs/closed/bug_13117.v @@ -0,0 +1,23 @@ + +Class A := {}. + +Class B (x:A) := {}. +Class B' (a:=A) (x:a) := {}. + +Fail Definition foo a `{B a} := 0. +Definition foo a `{B' a} := 0. + +Record C (x:A) := {}. +Existing Class C. + +Fail Definition bar a `{C a} := 0. + + +Definition X := Type. + +Class Y (x:X) := {}. + +Definition before `{Y Set} := 0. + +Existing Class X. +Fail Definition after `{Y Set} := 0. -- cgit v1.2.3