linux-packaging-mono/mcs/tests/gtest-autoproperty-19.cs
Xamarin Public Jenkins c042cd0c52 Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
2015-11-10 15:03:43 +00:00

24 lines
290 B
C#

abstract class Node
{
public virtual int Next { get; }
}
class NodeLinked : Node
{
public NodeLinked (int next)
{
this.Next = next;
}
public override int Next { get; }
public static int Main ()
{
var nl = new NodeLinked (5);
if (nl.Next != 5)
return 1;
return 0;
}
}