[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / gtest-284.cs
index e5aac17e1a4a32f7dbeaf68b1b0f7de3221c4067..b7583e37813a0e482413450bae0be5f30df488f9 100644 (file)
@@ -147,10 +147,6 @@ public static class InterfaceTester
        static readonly Type generic_icollection_type;
        static readonly Type generic_ienumerable_type;
        static readonly Type icloneable_type;
-#if NET_4_0
-       static readonly Type istructuralequatable_type = typeof (IStructuralEquatable);
-       static readonly Type istructuralcomparable_type = typeof (IStructuralComparable);
-#endif
 
        static InterfaceTester ()
        {
@@ -176,11 +172,8 @@ public static class InterfaceTester
                ifaces.Add (icollection_type, State.Missing);
                ifaces.Add (ienumerable_type, State.Missing);
                ifaces.Add (icloneable_type, State.Missing);
-#if NET_4_0
-               ifaces.Add (istructuralequatable_type, State.Missing);
-               ifaces.Add (istructuralcomparable_type, State.Missing);
-#endif
-
+               ifaces.Add (typeof (IStructuralEquatable), State.Missing);
+               ifaces.Add (typeof (IStructuralComparable), State.Missing);
                Type array_type = t.MakeArrayType ();
 
                if (Debug) {
@@ -194,6 +187,11 @@ public static class InterfaceTester
                        ifaces.Add (generic_ilist_type.MakeGenericType (gargs), State.Missing);
                        ifaces.Add (generic_icollection_type.MakeGenericType (gargs), State.Missing);
                        ifaces.Add (generic_ienumerable_type.MakeGenericType (gargs), State.Missing);
+
+#if NET_4_5
+                       ifaces.Add (typeof (IReadOnlyCollection<>).MakeGenericType (gargs), State.Missing);
+                       ifaces.Add (typeof (IReadOnlyList<>).MakeGenericType (gargs), State.Missing);
+#endif
                }
 
                foreach (Type iface in array_type.GetInterfaces ()) {
@@ -288,7 +286,7 @@ class Z
                return 0;
        }
 
-       static int Main ()
+       public static int Main ()
        {
                int result = Test ();
                if (result == 0)