From e17a1a832a077793a662d817c40e2a3b5bc1ed9c Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Mon, 8 Mar 2021 18:47:10 +0100 Subject: Adding a parsing test. --- test-suite/ltac2/syntax_cast.v | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test-suite/ltac2/syntax_cast.v (limited to 'test-suite/ltac2') 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 (). -- cgit v1.2.3