| 1 |
(* @herbelin's example for issue #6212 *) |
| 2 |
|
| 3 |
Require Import Extraction. |
| 4 |
Inductive I := C : bool -> bool -> I. |
| 5 |
Definition test := C true false. |
| 6 |
|
| 7 |
(* the parentheses around the function wrong signalled an infix operator *) |
| 8 |
|
| 9 |
Extract Inductive I => "foo" [ "(fun (b, p) -> bar)" ]. |
| 10 |
Extraction test. |
| 11 |
|
| 12 |
(* some bonafide infix operators *) |
| 13 |
|
| 14 |
Extract Inductive I => "foo" [ "(@@?)" ]. |
| 15 |
Extraction test. |
| 16 |
|
| 17 |
Extract Inductive I => "foo" [ "(#^^)" ]. |
| 18 |
Extraction test. |
| 19 |
|
| 20 |
Extract Inductive I => "foo" [ "(@?:::)" ]. |
| 21 |
Extraction test. |
| 22 |
|
| 23 |
(* allow whitespace around infix operator *) |
| 24 |
|
| 25 |
Extract Inductive I => "foo" [ "( @?::: )" ]. |
| 26 |
Extraction test. |