[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-variance-17.cs
blobdded70f2cfabfbc81db7ce24d491e0e7db9e8adb
1 using System;
3 interface InterfaceContravariat<in T>
5 T Prop { set; }
6 T this[int arg] { set; }
9 interface InterfaceCovariant<out T>
11 T Prop { get; }
12 T this[int arg] { get; }
15 class A : InterfaceContravariat<int>, InterfaceCovariant<long>
17 public static int Main ()
19 return 0;
22 int InterfaceContravariat<int>.Prop
24 set { throw new NotImplementedException (); }
27 int InterfaceContravariat<int>.this[int arg]
29 set { throw new NotImplementedException (); }
32 long InterfaceCovariant<long>.Prop
34 get { throw new NotImplementedException (); }
37 long InterfaceCovariant<long>.this[int arg]
39 get { throw new NotImplementedException (); }