diff options
| author | Michael Soegtrop | 2021-03-23 21:52:04 +0100 |
|---|---|---|
| committer | Michael Soegtrop | 2021-03-23 21:52:04 +0100 |
| commit | fa2ba1571cbd791c3b1acd87adeacd0aa4bd6e88 (patch) | |
| tree | 02838cbe413809dacc416d0e71102aac9f37ae1c /test-suite | |
| parent | 285d5e03a230af7b327cba0b7720217ede664761 (diff) | |
| parent | aba594ca194390bb00f8ef60ef8a5eef6694fc07 (diff) | |
Merge PR #13914: Allow the presence of type casts for return values in Ltac2.
Reviewed-by: MSoegtropIMC
Reviewed-by: Zimmi48
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/ltac2/syntax_cast.v | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/ltac2/syntax_cast.v b/test-suite/ltac2/syntax_cast.v new file mode 100644 index 0000000000..f62d49173d --- /dev/null +++ b/test-suite/ltac2/syntax_cast.v @@ -0,0 +1,14 @@ +Require Import Ltac2.Ltac2. + +Ltac2 foo0 x y : unit := (). +Ltac2 foo1 : unit := (). +Fail Ltac2 foo2 : unit -> unit := (). +Ltac2 foo3 : unit -> unit := fun (_ : unit) => (). + +Ltac2 bar0 := fun x y : unit => (). +Fail Ltac2 bar1 := fun x : unit => 0. +Ltac2 bar2 := fun x : unit list => []. + +Ltac2 qux0 := let x : unit := () in (). +Ltac2 qux1 () := let x y z : unit := () in x 0 "". +Fail Ltac2 qux2 := let x : unit -> unit := () in (). |
