New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 8 Sep 2009 16:49:18 +0000 (16:49 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 8 Sep 2009 16:49:18 +0000 (16:49 -0000)
svn path=/trunk/mcs/; revision=141533

mcs/tests/gtest-461.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-461.cs b/mcs/tests/gtest-461.cs
new file mode 100644 (file)
index 0000000..4ad8228
--- /dev/null
@@ -0,0 +1,38 @@
+using System;
+
+namespace Test
+{
+       public class BaseContext
+       {
+       }
+
+       public class MyDataContext : BaseContext
+       {
+       }
+
+       public abstract class Entity<T>
+       {
+       }
+
+       public class Person : Entity<MyDataContext>
+       {
+       }
+
+       public sealed class TheBox<T> where T : BaseContext
+       {
+               public U GetById<U> (Guid entityId) where U : Entity<T>
+               {
+                       return null;
+               }
+       }
+
+       public class Program
+       {
+               public static void Main ()
+               {
+                       TheBox<MyDataContext> dc = new TheBox<MyDataContext> ();
+                       dc.GetById<Person> (Guid.NewGuid ());
+               }
+       }
+}
+
index 402adb25bf881101a579274afccfcc41033845f9..66edca7967593ea8e6bf06c8d212ba9d29a8ec02 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-461.cs">
+    <type name="Test.BaseContext">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test.MyDataContext">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test.Entity`1[T]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test.Person">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test.TheBox`1[T]">
+      <method name="U GetById[U](Guid)">
+        <size>7</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test.Program">
+      <method name="Void Main()">
+        <size>19</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">