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: 03c79bf1a9aa34da2dad726aedc5be6cf97571dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs0206.cs: indexers or properties can not be used as ref or out arguments
// Line:
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);
	}
}