2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs1690-2.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 Error { get { return true; } }
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         bool b = a.point.Error;
22    }
23 }