diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-12-19 18:02:59 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-12-19 18:02:59 +0300 |
commit | a57ea8054f9aa8d23cc011720f32a36321d97b0c (patch) | |
tree | eb94a4bc1301aa2f499310c4790b591028d22742 /mcs/tests/test-anon-76.cs | |
parent | 3c666ed0337fc5bbbbb5ec6322826573d5509297 (diff) |
Set svn:eol-style
svn path=/trunk/mcs/; revision=121849
Diffstat (limited to 'mcs/tests/test-anon-76.cs')
-rw-r--r-- | mcs/tests/test-anon-76.cs | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/mcs/tests/test-anon-76.cs b/mcs/tests/test-anon-76.cs index c9bcf1f12cc..ee50eba347f 100644 --- a/mcs/tests/test-anon-76.cs +++ b/mcs/tests/test-anon-76.cs @@ -1,39 +1,39 @@ -using System;
-
-delegate object FactoryDelegate ();
-
-public class C
-{
- FactoryDelegate var;
- int counter;
-
- FactoryDelegate this [string s]
- {
- set { var = value; }
- get { return var; }
- }
-
- public void X ()
- {
- this ["ABC"] = delegate () {
- ++counter;
- Console.WriteLine ("A");
- return "Return";
- };
- }
-
- static int Main ()
- {
- C o = new C ();
- o.X ();
-
- Console.WriteLine ("B");
- Console.WriteLine (o ["ABC"] ());
-
- Console.WriteLine (o.counter);
- if (o.counter != 1)
- return 1;
-
- return 0;
- }
-}
+using System; + +delegate object FactoryDelegate (); + +public class C +{ + FactoryDelegate var; + int counter; + + FactoryDelegate this [string s] + { + set { var = value; } + get { return var; } + } + + public void X () + { + this ["ABC"] = delegate () { + ++counter; + Console.WriteLine ("A"); + return "Return"; + }; + } + + static int Main () + { + C o = new C (); + o.X (); + + Console.WriteLine ("B"); + Console.WriteLine (o ["ABC"] ()); + + Console.WriteLine (o.counter); + if (o.counter != 1) + return 1; + + return 0; + } +} |