Add new tests, enable old friends
[mono.git] / mcs / errors / cs1690-3.cs
1 // cs1690.cs: Cannot call methods, properties, or indexers on 'A.point' because it is a value type member of a marshal-by-reference class
2 // Line: 21
3
4 using System;
5
6 public struct Point
7 {
8         public bool this [int i] { set { } }
9 }
10
11 public class A : MarshalByRefObject
12 {
13    public Point point = new Point ();
14 }
15
16 public class Test
17 {
18    public static void Main ()
19    {
20         A a = new A ();
21         a.point [3] = false;
22    }
23 }