Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-ref-07.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4aa165797520496d29482b68277dc67f324d91f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Compiler options: -langversion:latest

public readonly partial ref struct Test
{
	public static void Main ()
	{
		var m = new Test ();
		m.Method ();
	}

	Test Method ()
	{
		return new Test ();
	}
}

ref struct Second
{
	Test field;
}

public abstract class P
{
	public abstract Test Span { get; }
}

public interface II
{
	Test Span { get; }
}