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

cs0192-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35a84ee0e0e6f51515fce92fc18ce63e9344d53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs0192-2.cs: A readonly field `A.a' cannot be passed ref or out (except in a constructor)
// Line: 15

class A
{
	public readonly int a;
	
	public void Inc (out int a)
	{
            a = 3;
	}
	
	public void IncCall ()
	{
		Inc (out a);
	}
}