diff options
Diffstat (limited to 'test-suite/output')
-rw-r--r-- | test-suite/output/Errors.out | 2 | ||||
-rw-r--r-- | test-suite/output/Errors.v | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/output/Errors.out b/test-suite/output/Errors.out index 6354ad469..8048deb0c 100644 --- a/test-suite/output/Errors.out +++ b/test-suite/output/Errors.out @@ -5,3 +5,5 @@ Unable to unify "nat" with "True". The command has indeed failed with message: In nested Ltac calls to "f" and "apply x", last call failed. Unable to unify "nat" with "True". +The command has indeed failed with message: +Error: Instance is not well-typed in the environment of ?x diff --git a/test-suite/output/Errors.v b/test-suite/output/Errors.v index 352c87385..424d24801 100644 --- a/test-suite/output/Errors.v +++ b/test-suite/output/Errors.v @@ -16,3 +16,12 @@ Goal True. Fail simpl; apply 0. Fail simpl; f 0. Abort. + +(* Test instantiate error messages *) + +Goal forall T1 (P1 : T1 -> Type), sigT P1 -> sigT P1. +intros T1 P1 H1. +eexists ?[x]. +destruct H1 as [x1 H1]. +Fail instantiate (x:=projT1 x1). +Abort. |