add ISafeSerializationData
[mcs.git] / tests / test-659.cs
blobde18b4f4835738056751ec3f38b77d8db013893e
1 using System;
2 using System.Runtime.CompilerServices;
4 interface Iface
6 [IndexerName ("AA")]
7 bool this [int i] { set; }
10 public class MySubClass : Iface
12 static int Main ()
14 MySubClass m = new MySubClass ();
15 m [1] = true;
17 Iface i = new MySubClass ();
18 i [1] = true;
19 return 0;
22 [IndexerName ("BB")]
23 public bool this [int i] { set { } }