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

cs0459-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b46d564e7b3621cfc49e356772117ccb7b73bc85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0459: Cannot take the address of `this' because it is read-only
// Line: 11
// Compiler options: -unsafe

using System;

class X {

	unsafe void Test ()
	{
		X x = *&this;
	}
}