Author: marek
Date: 2007-02-20 17:10:38 -0500 (Tue, 20 Feb 2007)
New Revision: 73220
Added:
trunk/mcs/tests/test-anon-65.cs
Log:
New test based on #80650
Added: trunk/mcs/tests/test-anon-65.cs
===================================================================
--- trunk/mcs/tests/test-anon-65.cs 2007-02-20 22:09:17 UTC (rev 73219)
+++ trunk/mcs/tests/test-anon-65.cs 2007-02-20 22:10:38 UTC (rev 73220)
@@ -0,0 +1,28 @@
+using System;
+
+public class BaseClass
+{
+ public delegate void SomeDelegate ();
+ public BaseClass (SomeDelegate d)
+ {
+ d ();
+ }
+}
+
+public class TestClass : BaseClass
+{
+ public readonly int Result;
+ public TestClass (int result)
+ : base (delegate ()
+ {
+ Console.WriteLine (result);
+ })
+ {
+ }
+
+ static int Main (string[] args)
+ {
+ TestClass c = new TestClass (1);
+ return 0;
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/tests/test-anon-65.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches