New test.
authorMarek Safar <marek.safar@gmail.com>
Wed, 17 Feb 2010 14:14:15 +0000 (14:14 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 17 Feb 2010 14:14:15 +0000 (14:14 -0000)
svn path=/trunk/mcs/; revision=151908

mcs/tests/gtest-040.cs
mcs/tests/ver-il-gmcs.xml

index bcaeef3d0c901ce2108bd5f5cc2e25863ec438d5..defa47999f6a1e1434a2d8e5a2b366a0d76d67e6 100644 (file)
@@ -105,13 +105,31 @@ public class Stack<T>
        }
 }
 
+class A<U>
+{
+       public class Test<T>
+       {
+               public static Nested<T> Foo ()
+               {
+                       return null;
+               }
+               
+               public class Nested<X>
+               {
+               }
+       }
+}
+
 class X
 {
-       static void Main ()
+       static int Main ()
        {
                Stack<int> stack = new Stack<int> (1);
                INode<int> node = stack.GetNode ();
                Stack<int>.Foo<int> foo = stack.GetFoo (7);
                Stack<int>.Bar<int> bar = stack.GetBar (8);
+
+               A<bool>.Test<string>.Nested<string> v = A<bool>.Test<string>.Foo ();
+               return 0;
        }
 }
index d6bfaa85508cfd717de3d325caab8b5eefdffb15..57e9707cea46cc3c2cfcbd7c3f998e1ff0c41eda 100644 (file)
       <method name="Void .ctor()">
         <size>7</size>
       </method>
-      <method name="Void Main()">
-        <size>31</size>
+    </type>
+    <type name="A`1[U]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="A`1+Test`1[U,T]">
+      <method name="A`1+Test`1+Nested`1[U,T,T] Foo()">
+        <size>2</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="A`1+Test`1+Nested`1[U,T,X]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="X">
+      <method name="Int32 Main()">
+        <size>39</size>
       </method>
     </type>
   </test>