diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-12-01 13:44:42 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-12-01 13:44:42 +0300 |
commit | 82e47309b6bb44d7cb738ecca7d7ee5687bc421f (patch) | |
tree | ccaa485a13775fa8b115e319163c1c22e75f2972 /mcs/errors/cs1690-3.cs | |
parent | 079eb0780d153bb214741c4c96cddcbb07dd5582 (diff) |
svn path=/trunk/mcs/; revision=36894
Diffstat (limited to 'mcs/errors/cs1690-3.cs')
-rw-r--r-- | mcs/errors/cs1690-3.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs1690-3.cs b/mcs/errors/cs1690-3.cs new file mode 100644 index 00000000000..e418dcb72d9 --- /dev/null +++ b/mcs/errors/cs1690-3.cs @@ -0,0 +1,23 @@ +// cs1690.cs: Cannot call methods, properties, or indexers on 'A.point' because it is a value type member of a marshal-by-reference class +// Line: 21 + +using System; + +public struct Point +{ + public bool this [int i] { set { } } +} + +public class A : MarshalByRefObject +{ + public Point point = new Point (); +} + +public class Test +{ + public static void Main () + { + A a = new A (); + a.point [3] = false; + } +} |