linux-packaging-mono/mcs/tests/test-primary-ctor-03.cs
Jo Shields fe777c5c82 Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
2014-09-04 09:07:35 +01:00

20 lines
244 B
C#

class D(string arg) : Base (arg)
{
}
abstract class Base (object obj)
{
public string Prop { get; } = obj.ToString ();
}
class X
{
public static int Main ()
{
var d = new D ("test");
if (d.Prop != "test")
return 1;
return 0;
}
}