aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest/set_lamda.v
diff options
context:
space:
mode:
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.
+