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:
authorMiguel de Icaza <miguel@gnome.org>2004-10-27 03:22:17 +0400
committerMiguel de Icaza <miguel@gnome.org>2004-10-27 03:22:17 +0400
commit70a0ccb6e9a0acaeba51dcc9cfbd122d4433efb8 (patch)
tree166e8199d55e0d1ad6c4df317f06fa6ff720854b /mcs/errors/cs1686.cs
parent5189d05cedf1e09e74759a9cf8c2f2bc2d2c2954 (diff)
Tastyness
svn path=/trunk/mcs/; revision=35343
Diffstat (limited to 'mcs/errors/cs1686.cs')
-rw-r--r--mcs/errors/cs1686.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs1686.cs b/mcs/errors/cs1686.cs
new file mode 100644
index 00000000000..9740e1c356e
--- /dev/null
+++ b/mcs/errors/cs1686.cs
@@ -0,0 +1,22 @@
+// cs1686.cs: Can not take the address of a local variable
+// Line:
+
+unsafe class X {
+ delegate void T ();
+
+ static void Main ()
+ {
+ int i;
+
+ unsafe {
+ T t = delegate {
+ int *j = &i;
+ };
+ }
+ }
+}
+
+
+
+
+