Merge pull request #3748 from akoeplinger/fix-rng-monotouch
[mono.git] / mcs / errors / cs1690.cs
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
4
5 using System;
6
7 public struct Point
8 {
9         public void Error () {}
10 }
11
12 public class A : MarshalByRefObject
13 {
14    public Point point = new Point ();
15 }
16
17 public class Test
18 {
19    public static void Main ()
20    {
21         A a = new A ();
22         a.point.Error ();
23    }
24 }