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: 649a7079c1eb276e1fe94585b925b0e07d115175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0192: 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);
	}
}