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

cs0206.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db0450affb3b2dce1f0f27f1091c92797a61a403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0206:  A property or indexer `X.P' may not be passed as `ref' or `out' parameter
// Line: 15

class X {
	static int P { get { return 1; } set { } }

	static int m (out int v)
	{
		v = 1;
		return 1;
	}
	
	static void Main ()
	{
		m (out P);
	}
}