diff options
author | Miguel de Icaza <miguel@gnome.org> | 2004-11-25 01:12:33 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2004-11-25 01:12:33 +0300 |
commit | 4569c8445e3f8b765b69a0edee3ce2e058e8a5f9 (patch) | |
tree | 806df1b5b4636be7a63647adc62f1c171f0cbd2a /mcs/errors/cs1686.cs | |
parent | 851c32ef5d6e5570b57ed02dbe79948cf6ba1780 (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.cs | 27 |
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 () {} +} |