diff options
| author | coqbot-app[bot] | 2020-11-15 15:29:55 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-15 15:29:55 +0000 |
| commit | 010dfd516839b901ce8e69dffc0c3751564a8ad6 (patch) | |
| tree | f108bdd629d4a9a96dce48fabfc2e309717e7ea8 /test-suite | |
| parent | 3ea3da24690e0e680c30b39e45f07a7e6500faac (diff) | |
| parent | bad1d9a5263d1128541bc669f81ae81173ce45df (diff) | |
Merge PR #13376: Fixes #13266: Avoiding encapsulating exceptions w/o a handler in NotFoundInstance
Reviewed-by: ejgallego
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/output/bug_13266.out | 12 | ||||
| -rw-r--r-- | test-suite/output/bug_13266.v | 18 |
2 files changed, 30 insertions, 0 deletions
diff --git a/test-suite/output/bug_13266.out b/test-suite/output/bug_13266.out new file mode 100644 index 0000000000..034830f1ac --- /dev/null +++ b/test-suite/output/bug_13266.out @@ -0,0 +1,12 @@ +The command has indeed failed with message: +Abstracting over the terms "S", "p" and "u" leads to a term +fun (S0 : Type) (p0 : proc S0) (_ : S0) => p0 = Tick -> True +which is ill-typed. +Reason is: Illegal application: +The term "@eq" of type "forall A : Type, A -> A -> Prop" +cannot be applied to the terms + "proc S0" : "Prop" + "p0" : "proc S0" + "Tick" : "proc unit" +The 3rd term has type "proc unit" which should be coercible to +"proc S0". diff --git a/test-suite/output/bug_13266.v b/test-suite/output/bug_13266.v new file mode 100644 index 0000000000..e59455a326 --- /dev/null +++ b/test-suite/output/bug_13266.v @@ -0,0 +1,18 @@ +Inductive proc : Type -> Type := +| Tick : proc unit +. + +Inductive exec : + forall T, proc T -> T -> Prop := +| ExecTick : + exec _ (Tick) tt +. + +Lemma foo : + exec _ Tick tt -> + True. +Proof. + intros H. + remember Tick as p. + Fail induction H. +Abort. |
