diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-01-05 20:57:39 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-01-05 20:57:39 +0400 |
commit | c8d2439d355a8c7eceb25fef13ff32f891f911fb (patch) | |
tree | 6c629196feb940676e1c78e546adba46e73554c8 /mcs/tests/gtest-284.cs | |
parent | a26a1f8487ee9de8bb2597f719574587a3e9d72f (diff) |
Update after array interfaces change
Diffstat (limited to 'mcs/tests/gtest-284.cs')
-rw-r--r-- | mcs/tests/gtest-284.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mcs/tests/gtest-284.cs b/mcs/tests/gtest-284.cs index a2a0100ce6b..fbab6410132 100644 --- a/mcs/tests/gtest-284.cs +++ b/mcs/tests/gtest-284.cs @@ -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 () { @@ -177,10 +173,9 @@ public static class InterfaceTester 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); + ifaces.Add (typeof (IStructuralEquatable), State.Missing); + ifaces.Add (typeof (IStructuralComparable), State.Missing); #endif - Type array_type = t.MakeArrayType (); if (Debug) { @@ -194,6 +189,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 ()) { |