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

test-discards-01.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54cf29779c6c03c9382279009d1f48566a159fb7 (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
31
32
33
34
35
36
using System;

class X
{
	public static void Main ()
	{
		string s = null;

		_ = 1;
		{
			char _ = '4';
		}

		_ = TestValue ();

		_ = _ = s;

		byte k1;
		var s1 = (k1, _) = (1, s);

		Func<object> l1 = () => _ = (_, _) = (1, s);

		TryGetValue (out _);
	}

	static bool TryGetValue (out int arg)
	{
		arg = 3;
		return true;
	}

	static int TestValue ()
	{
		return 4;
	}
}