2009-05-13 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1690-3.cs
blobdd897c910016100af611c466c127d23ecf5f5598
1 // cs1690-3.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: 22
3 // Compiler options: -warn:1 -warnaserror
5 using System;
7 public struct Point
9 public bool this [int i] { set { } }
12 public class A : MarshalByRefObject
14 public Point point = new Point ();
17 public class Test
19 public static void Main ()
21 A a = new A ();
22 a.point [3] = false;