update readme (#21797)
[mono-project.git] / mcs / errors / cs1690-2.cs
blobe529cf686a7e2eb81f2f658b8100cf19e4cf363f
1 // CS1690: 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 Error { get { return true; } }
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 bool b = a.point.Error;