[mcs] C# 7 tuple (foundation only).
[mono.git] / mcs / tests / dtest-001.cs
index f0b58ef8b9a0758ad265a412d9b0cb85b601ff7a..78de1d8253d0238728d07127d8fd5d831fe27c7b 100644 (file)
@@ -12,7 +12,11 @@ interface I<T>
 {
 }
 
-class C
+class B<T>
+{
+}
+
+class C : B<dynamic>
 {
        public C (dynamic d)
        {
@@ -108,6 +112,9 @@ class Test
                if (t.GetConstructors ()[0].GetCustomAttributes (ca, false).Length != 0)
                        return 21;
 
+               if (t.GetCustomAttributes (ca, false).Length != 1)
+                       return 22;
+
                // Transformations
                DynamicAttribute da;
                da = t.GetMember ("t")[0].GetCustomAttributes (ca, false)[0] as DynamicAttribute;