a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
478 B
C#
25 lines
478 B
C#
// CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class
|
|
// Line: 22
|
|
// Compiler options: -warn:1 -warnaserror
|
|
|
|
using System;
|
|
|
|
public struct Point
|
|
{
|
|
public bool Error { get { return true; } }
|
|
}
|
|
|
|
public class A : MarshalByRefObject
|
|
{
|
|
public Point point = new Point ();
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
A a = new A ();
|
|
bool b = a.point.Error;
|
|
}
|
|
}
|