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

test-null-operator-09.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9be052c44f17f30662ff2a25876c89d93929efdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
delegate int D (int t);

class X
{
	D d = delegate { return 4; };

	public static int Main ()
	{
		X x = null;

		var res = x?.d (55);
		if (res != null)
			return 1;
			
		x?.d (1);

		return 0;
	}
}