From 7fd28dc95e3251a10617ddb6758cc00b8960f954 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Sat, 24 Mar 2018 13:19:13 +0100 Subject: Slightly refining some error messages about unresolvable evars. For instance, error in "Goal forall a f, f a = 0" is now located. --- test-suite/output/Errors.out | 8 ++++++++ test-suite/output/Errors.v | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'test-suite/output') diff --git a/test-suite/output/Errors.out b/test-suite/output/Errors.out index 38d055b28..24180c455 100644 --- a/test-suite/output/Errors.out +++ b/test-suite/output/Errors.out @@ -8,3 +8,11 @@ Unable to unify "nat" with "True". The command has indeed failed with message: Ltac call to "instantiate ( (ident) := (lglob) )" failed. Instance is not well-typed in the environment of ?x. +The command has indeed failed with message: +Cannot infer the domain of the type of f. +The command has indeed failed with message: +Cannot infer the domain of the implicit parameter A of id whose type is +"Type". +The command has indeed failed with message: +Cannot infer the codomain of the type of f in environment: +x : nat diff --git a/test-suite/output/Errors.v b/test-suite/output/Errors.v index 424d24801..c9b509134 100644 --- a/test-suite/output/Errors.v +++ b/test-suite/output/Errors.v @@ -25,3 +25,9 @@ eexists ?[x]. destruct H1 as [x1 H1]. Fail instantiate (x:=projT1 x1). Abort. + +(* Test some messages for non solvable evars *) + +Fail Goal forall a f, f a = 0. +Fail Goal forall f x, id f x = 0. +Fail Goal forall f P, P (f 0). -- cgit v1.2.3