aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest/set_lamda.v
diff options
context:
space:
mode:
authorEnrico Tassi2015-03-09 11:07:53 +0100
committerEnrico Tassi2015-03-09 11:24:38 +0100
commitfc84c27eac260dffd8f2fb1cb56d599f1e3486d9 (patch)
treec16205f1637c80833a4c4598993c29fa0fd8c373 /mathcomp/ssrtest/set_lamda.v
Initial commit
Diffstat (limited to 'mathcomp/ssrtest/set_lamda.v')
-rw-r--r--mathcomp/ssrtest/set_lamda.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/mathcomp/ssrtest/set_lamda.v b/mathcomp/ssrtest/set_lamda.v
new file mode 100644
index 0000000..51b8e61
--- /dev/null
+++ b/mathcomp/ssrtest/set_lamda.v
@@ -0,0 +1,14 @@
+Require Import ssreflect ssrbool eqtype ssrnat ssrfun.
+
+Set Implicit Arguments.
+Unset Strict Implicit.
+Import Prenex Implicits.
+
+(* error 2 *)
+
+Goal (exists f: Set -> nat, f nat = 0).
+Proof. set (f:= fun _:Set =>0). by exists f. Qed.
+
+Goal (exists f: Set -> nat, f nat = 0).
+Proof. set f := (fun _:Set =>0). by exists f. Qed.
+