Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs4005-2.cs')
-rw-r--r--mcs/errors/cs4005-2.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs4005-2.cs b/mcs/errors/cs4005-2.cs
new file mode 100644
index 00000000000..920f1b0a828
--- /dev/null
+++ b/mcs/errors/cs4005-2.cs
@@ -0,0 +1,13 @@
+// CS4005: Async methods cannot have unsafe parameters
+// Line: 11
+// Compiler options: -unsafe
+
+class C
+{
+ unsafe delegate void D (int* i);
+
+ public static void Main ()
+ {
+ D d = async delegate { };
+ }
+}