diff options
| author | Hugo Herbelin | 2020-08-24 16:40:58 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-08-24 16:40:58 +0200 |
| commit | d49b9f298e46df177400cae775a1c22879543456 (patch) | |
| tree | 21ea97ea49656ae39807d0d2eea1f6629ab0b0d8 /test-suite/bugs/opened | |
| parent | 188e8f7084b586f2e555a5770d24eec8ebd05d91 (diff) | |
| parent | 81ed30792484b5fb947b8e53f1363574015ce546 (diff) | |
Merge PR #12835: Slightly reorganising the test suite to follow its documentation
Reviewed-by: SkySkimmer
Reviewed-by: herbelin
Reviewed-by: jfehrle
Diffstat (limited to 'test-suite/bugs/opened')
| -rw-r--r-- | test-suite/bugs/opened/bug_2904.v | 18 | ||||
| -rw-r--r-- | test-suite/bugs/opened/bug_5996.v | 19 |
2 files changed, 37 insertions, 0 deletions
diff --git a/test-suite/bugs/opened/bug_2904.v b/test-suite/bugs/opened/bug_2904.v new file mode 100644 index 0000000000..da30a509ac --- /dev/null +++ b/test-suite/bugs/opened/bug_2904.v @@ -0,0 +1,18 @@ +Module Type S. +Parameter t : Type. +Module M'. +Parameter t : Type. +Definition u := S.t. +End M'. +End S. + +Module M : S. +Definition t := unit. +Module M'. +Definition t := bool. +Definition u := M.t. +End M'. +End M. + +Require Extraction. +Fail Extraction TestCompile M. diff --git a/test-suite/bugs/opened/bug_5996.v b/test-suite/bugs/opened/bug_5996.v new file mode 100644 index 0000000000..2e81a183cd --- /dev/null +++ b/test-suite/bugs/opened/bug_5996.v @@ -0,0 +1,19 @@ +(* Original example *) +Goal Type. + let c := constr:(prod nat nat) in + let c' := (eval pattern nat in c) in + let c' := lazymatch c' with ?f _ => f end in + let c'' := lazymatch c' with fun x : Set => ?f => constr:(forall x : Type, f) end in + exact c''. +Fail Defined. +Abort. + +(* Workaround *) +Goal Type. + let c := constr:(prod nat nat) in + let c' := (eval pattern nat in c) in + let c' := lazymatch c' with ?f _ => f end in + let c'' := lazymatch c' with fun x : Set => ?f => constr:(forall x : Type, f) end in + let _ := type of c'' in + exact c''. +Defined. |
