forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing match cases for prim strings in notation.ml
Fix coq#20020
- Loading branch information
1 parent
bb45ba9
commit c0d07d5
Showing
3 changed files
with
16 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"bla"%ts | ||
: t |
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,11 @@ | ||
Require PrimString. | ||
|
||
Declare Scope t_scope. | ||
Delimit Scope t_scope with ts. | ||
|
||
Import PrimString. | ||
Inductive t := v : string -> t. | ||
Definition parse : string -> t := v. | ||
Definition print : t -> string := fun x => match x with v s => s end. | ||
String Notation t parse print : t_scope. | ||
Check v "bla". (* string notation not used: [v "bla"] *) |