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

cs1656-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 984b00f86ce430e6ad9d0806cf4c504dc85041e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs1656.cs: Cannot assign to 'p' because it is a 'fixed variable'
// line: 10
// Compiler options: -unsafe

unsafe class X {

	static int x = 0;
	static void Main () {
		fixed (int* p = &x) {
		    p = (int*)22;
		}
	}		    
}