Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ltac2: fix printing of constructor values with arguments
Fix coq#18556
- Loading branch information
1 parent
4ec89c7
commit 1473e7b
Showing
7 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
File "./output/bug_16716.v", line 11, characters 0-55: | ||
The command has indeed failed with message: | ||
Uncaught Ltac2 exception: E (constr:(?X4.(r _))) | ||
Uncaught Ltac2 exception: E constr:(?X4.(r _)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
File "./output/bug_17155.v", line 6, characters 0-23: | ||
The command has indeed failed with message: | ||
Uncaught Ltac2 exception: Invalid_argument (None) | ||
Uncaught Ltac2 exception: Invalid_argument None | ||
File "./output/bug_17155.v", line 8, characters 0-23: | ||
The command has indeed failed with message: | ||
Backtrace: | ||
Call M.g | ||
Call bug_17155.M.f (* local *) | ||
Prim <coq-core.plugins.ltac2:throw> | ||
Uncaught Ltac2 exception: Invalid_argument (None) | ||
Uncaught Ltac2 exception: Invalid_argument None | ||
Ltac2 M.g : unit -> 'a | ||
M.g := fun _ => bug_17155.M.f (* local *) () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- : pair = C 0 0 | ||
- : pair' = C' (0, 0) | ||
- : ppair = D (C 0 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Require Import Ltac2.Ltac2. | ||
|
||
(* cf bug #18556 *) | ||
|
||
Ltac2 Type pair := [ C (int, int) ]. | ||
|
||
Ltac2 Eval C 0 0. | ||
(* prints "C (0, 0)", should be "C 0 0" *) | ||
|
||
Ltac2 Type pair' := [ C' (int * int) ]. | ||
|
||
Ltac2 Eval C' (0, 0). | ||
(* prints "C' ((0, 0))", sound but over-parenthesized *) | ||
|
||
Ltac2 Type ppair := [ D (pair) ]. | ||
|
||
Ltac2 Eval D (C 0 0). |