forked from coq/coq
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn ltac2 typed notations on by default
Fix coq#17477
- Loading branch information
1 parent
5a92b5e
commit 5d6ec28
Showing
5 changed files
with
20 additions
and
4 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
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,5 +1,7 @@ | ||
Require Import Ltac2.Ltac2. | ||
|
||
Unset Ltac2 Typed Notations. | ||
|
||
Ltac2 Notation "foo" := (). | ||
|
||
Ltac2 Globalize foo. | ||
|
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,4 @@ | ||
File "./output/ltac2_typed_notations.v", line 5, characters 9-10: | ||
The command has indeed failed with message: | ||
This expression has type bool but an expression was expected of type | ||
constr |
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,9 @@ | ||
Require Import Ltac2.Ltac2. | ||
|
||
Fail Ltac2 foo(b: bool): bool := | ||
let c := b in | ||
match! c with | ||
| true => true | ||
| false => false | ||
end. | ||
(* error used to be on the whole command *) |