// Copy constraint from resolved part to partial container
spec.SpecialConstraint = tp.spec.SpecialConstraint;
- spec.InterfacesDefined = tp.spec.InterfacesDefined;
+ spec.Interfaces = tp.spec.Interfaces;
spec.TypeArguments = tp.spec.TypeArguments;
spec.BaseType = tp.spec.BaseType;
--- /dev/null
+using System.Collections.Generic;
+
+class Variable
+{
+}
+
+internal partial class Test<T>
+{
+}
+
+internal partial class Test<T> where T : IList<Variable>
+{
+ public Test (T t)
+ {
+ var val = t.Count;
+ }
+}
+
+internal partial class Test<T>
+{
+}
+
+class CC
+{
+ public static void Main ()
+ {
+ new Test<List<Variable>> (new List<Variable> ());
+ }
+}
\ No newline at end of file
</method>\r
</type>\r
</test>\r
+ <test name="gtest-partial-03.cs">\r
+ <type name="Variable">\r
+ <method name="Void .ctor()" attrs="6278">\r
+ <size>7</size>\r
+ </method>\r
+ </type>\r
+ <type name="Test`1[T]">\r
+ <method name="Void .ctor(T)" attrs="6278">\r
+ <size>22</size>\r
+ </method>\r
+ </type>\r
+ <type name="CC">\r
+ <method name="Void Main()" attrs="150">\r
+ <size>13</size>\r
+ </method>\r
+ <method name="Void .ctor()" attrs="6278">\r
+ <size>7</size>\r
+ </method>\r
+ </type>\r
+ </test>\r
<test name="gtest-var-04.cs">\r
<type name="Test">\r
<method name="Int32 Main()" attrs="145">\r