Author: martin
Date: 2005-04-22 12:08:45 -0400 (Fri, 22 Apr 2005)
New Revision: 43449
Added:
trunk/mcs/tests/gen-146.cs
trunk/mcs/tests/gen-147.cs
Modified:
trunk/mcs/tests/Makefile
Log:
New tests.
Modified: trunk/mcs/tests/Makefile
===================================================================
--- trunk/mcs/tests/Makefile 2005-04-22 15:36:44 UTC (rev 43448)
+++ trunk/mcs/tests/Makefile 2005-04-22 16:08:45 UTC (rev 43449)
@@ -126,7 +126,7 @@
gen-111 gen-112 gen-113 gen-114 gen-115 gen-116 gen-117 gen-118 gen-119
gen-120 \
gen-121 gen-122 gen-123 gen-124 gen-125 gen-127 gen-128 gen-129
gen-130 \
gen-131 gen-132 gen-133 gen-134 gen-135 gen-136 gen-137 gen-138 gen-139
gen-140 \
- gen-141 gen-142 gen-143 gen-144 gen-145
+ gen-141 gen-142 gen-143 gen-144 gen-145 gen-146 gen-147
# Need mcs merge
# cond-attr fixed-buffer-dll fixed-buffer-exe
Added: trunk/mcs/tests/gen-146.cs
===================================================================
--- trunk/mcs/tests/gen-146.cs 2005-04-22 15:36:44 UTC (rev 43448)
+++ trunk/mcs/tests/gen-146.cs 2005-04-22 16:08:45 UTC (rev 43449)
@@ -0,0 +1,27 @@
+using System;
+
+public class MyLinkedList<T> {
+ protected Node first;
+
+ protected class Node
+ {
+ public T item;
+
+ public Node (T item)
+ {
+ this.item = item;
+ }
+ }
+}
+
+class SortedList<U> : MyLinkedList<U>
+{
+ public void Insert (U x) {
+ Node node = first;
+ }
+}
+
+class X {
+ static void Main ()
+ { }
+}
Added: trunk/mcs/tests/gen-147.cs
===================================================================
--- trunk/mcs/tests/gen-147.cs 2005-04-22 15:36:44 UTC (rev 43448)
+++ trunk/mcs/tests/gen-147.cs 2005-04-22 16:08:45 UTC (rev 43449)
@@ -0,0 +1,38 @@
+namespace A
+{
+ interface IFoo
+ {
+ void Hello (IFoo foo);
+ }
+}
+
+namespace B
+{
+ partial class Test <T> : IDoo, A.IFoo where T : A.IFoo
+ { }
+}
+
+namespace B
+{
+ using A;
+
+ partial class Test <T> : Y, IFoo where T : IFoo
+ {
+ void IFoo.Hello (IFoo foo)
+ { }
+ }
+}
+
+interface IDoo { }
+
+class Y { }
+
+class X
+{
+ static void Main ()
+ { }
+}
+
+
+
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches