2018-01-24 17:04:36 +00:00
|
|
|
// Compiler options: -langversion:latest
|
|
|
|
|
2018-05-10 08:37:03 +00:00
|
|
|
public readonly ref partial struct Test
|
2018-01-24 17:04:36 +00:00
|
|
|
{
|
|
|
|
public static void Main ()
|
|
|
|
{
|
|
|
|
var m = new Test ();
|
|
|
|
m.Method ();
|
|
|
|
}
|
|
|
|
|
|
|
|
Test Method ()
|
|
|
|
{
|
|
|
|
return new Test ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-10 08:37:03 +00:00
|
|
|
ref partial struct Test
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
ref struct Second
|
|
|
|
{
|
|
|
|
Test field;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract class P
|
|
|
|
{
|
|
|
|
public abstract Test Span { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface II
|
|
|
|
{
|
|
|
|
Test Span { get; }
|
|
|
|
}
|