Author: martin
Date: 2006-11-24 08:38:30 -0500 (Fri, 24 Nov 2006)
New Revision: 68424

Added:
   branches/martin/anonymous-methods2/work/test-martin-7.cs
   branches/martin/anonymous-methods2/work/test-martin-8.cs
Modified:
   branches/martin/anonymous-methods2/work/known-issues
Log:


Modified: branches/martin/anonymous-methods2/work/known-issues
===================================================================
--- branches/martin/anonymous-methods2/work/known-issues        2006-11-24 
13:34:28 UTC (rev 68423)
+++ branches/martin/anonymous-methods2/work/known-issues        2006-11-24 
13:38:30 UTC (rev 68424)
@@ -1 +1,3 @@
 test-martin-5.cs
+test-martin-7.cs
+test-martin-8.cs

Added: branches/martin/anonymous-methods2/work/test-martin-7.cs
===================================================================
--- branches/martin/anonymous-methods2/work/test-martin-7.cs    2006-11-24 
13:34:28 UTC (rev 68423)
+++ branches/martin/anonymous-methods2/work/test-martin-7.cs    2006-11-24 
13:38:30 UTC (rev 68424)
@@ -0,0 +1,39 @@
+// Bug #79702
+public delegate void FooHandler();
+
+public class X
+{
+       private string a;
+
+       public X(string a)
+       {
+               this.a = a;
+       }
+
+       static void Main()
+       {
+       }
+}
+
+public class Y : X
+{
+       private Z a;
+       
+       public Y(Z a) : base(a.A)
+       {
+               this.a = a;
+
+               FooHandler handler = delegate {
+                       a.Hello();
+               };
+       }
+}
+
+public class Z
+{
+       public string A;
+       
+       public void Hello ()
+       {
+       }
+}

Added: branches/martin/anonymous-methods2/work/test-martin-8.cs
===================================================================
--- branches/martin/anonymous-methods2/work/test-martin-8.cs    2006-11-24 
13:34:28 UTC (rev 68423)
+++ branches/martin/anonymous-methods2/work/test-martin-8.cs    2006-11-24 
13:38:30 UTC (rev 68424)
@@ -0,0 +1,16 @@
+// Bug #79972
+delegate void TestFunc<T>(T val);
+
+class A
+{
+       public A(TestFunc<int> func) { }
+
+       static void Main ()
+       { }
+}
+
+class TestClass
+{
+       readonly A a = new A(delegate(int a) { });
+       static void Func<T>(TestFunc<T> func) { }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to