2015-04-07 09:35:12 +01:00
|
|
|
// Compiler options: -langversion:experimental
|
2014-08-13 10:39:27 +01:00
|
|
|
class D(string arg) : Base (arg)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class Base (object obj)
|
|
|
|
{
|
2014-09-04 09:07:35 +01:00
|
|
|
public string Prop { get; } = obj.ToString ();
|
2014-08-13 10:39:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class X
|
|
|
|
{
|
|
|
|
public static int Main ()
|
|
|
|
{
|
|
|
|
var d = new D ("test");
|
|
|
|
if (d.Prop != "test")
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|