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

cs0821.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba4c381492510a22016637cd4a4d204728f144d8 (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
// CS0821: A fixed statement cannot use an implicitly typed local variable
// Line: 9
// Compiler options: -unsafe

public class Point
{
	public int X;
	public int Y;
}

public class Test
{
	unsafe static void Main ()
	{
		Point p = new Point ();
		p.X = 42;
		p.Y = 16;
		
		fixed (var x = &p.X)
		{
		}
	}
}