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-11-25 01:12:33 +0300
committerMiguel de Icaza <miguel@gnome.org>2004-11-25 01:12:33 +0300
commit4569c8445e3f8b765b69a0edee3ce2e058e8a5f9 (patch)
tree806df1b5b4636be7a63647adc62f1c171f0cbd2a /mcs/errors/cs1686.cs
parent851c32ef5d6e5570b57ed02dbe79948cf6ba1780 (diff)
Same here: propset to keep line endings sane
svn path=/trunk/mcs/; revision=36506
Diffstat (limited to 'mcs/errors/cs1686.cs')
-rw-r--r--mcs/errors/cs1686.cs27
1 files changed, 10 insertions, 17 deletions
diff --git a/mcs/errors/cs1686.cs b/mcs/errors/cs1686.cs
index 4756dfe285a..b408129aba7 100644
--- a/mcs/errors/cs1686.cs
+++ b/mcs/errors/cs1686.cs
@@ -1,23 +1,16 @@
-// cs1686.cs: Can not take the address of a local variable
-// Line:
-// Compiler options: -unsafe
+class X {
+ delegate void S ();
-unsafe class X {
- delegate void T ();
-
- static void Main ()
+ unsafe void M ()
{
int i;
+ int * j ;
- unsafe {
- T t = delegate {
- int *j = &i;
- };
- }
+ S s = delegate {
+ i = 1;
+ };
+ j = &i;
}
-}
-
-
-
-
+ static void Main () {}
+}