diff options
| author | Gaëtan Gilbert | 2020-02-20 16:50:24 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-02-25 13:43:23 +0100 |
| commit | 0dab087b10598f79ffa4f907c6d93fb7932e1c5b (patch) | |
| tree | 7a49e711046ea7ef5071f448da669c546c5409c9 /test-suite/output | |
| parent | 1bc8cd6390a3208659d563b1363f9bc0d87643a0 (diff) | |
Use implicit arguments in notations for eq.
This gives IMO slightly nicer errors when the type cannot be inferred,
ie
~~~coq
Type (forall x, x = x).
~~~
says "cannot infer the implicit parameter A of eq" instead of "cannot
infer this placeholder".
Diffstat (limited to 'test-suite/output')
| -rw-r--r-- | test-suite/output/EqNotation.out | 3 | ||||
| -rw-r--r-- | test-suite/output/EqNotation.v | 2 | ||||
| -rw-r--r-- | test-suite/output/Show.out | 6 |
3 files changed, 8 insertions, 3 deletions
diff --git a/test-suite/output/EqNotation.out b/test-suite/output/EqNotation.out new file mode 100644 index 0000000000..41500a75b9 --- /dev/null +++ b/test-suite/output/EqNotation.out @@ -0,0 +1,3 @@ +The command has indeed failed with message: +Cannot infer the implicit parameter A of eq whose type is +"Type". diff --git a/test-suite/output/EqNotation.v b/test-suite/output/EqNotation.v new file mode 100644 index 0000000000..21076472b8 --- /dev/null +++ b/test-suite/output/EqNotation.v @@ -0,0 +1,2 @@ +(* should mention "the implicit parameter A of eq" *) +Fail Type (forall x, x = x). diff --git a/test-suite/output/Show.out b/test-suite/output/Show.out index ca56f032ff..f02e442be5 100644 --- a/test-suite/output/Show.out +++ b/test-suite/output/Show.out @@ -1,10 +1,10 @@ -3 subgoals (ID 31) +3 subgoals (ID 29) H : 0 = 0 ============================ 1 = 1 -subgoal 2 (ID 35) is: +subgoal 2 (ID 33) is: 1 = S (S m') -subgoal 3 (ID 22) is: +subgoal 3 (ID 20) is: S (S n') = S m |
