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

cs0214-5.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae7e1eecd29c380ec35671589c3e1f8be701c30a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// cs0214: Pointer can only be used in unsafe context
// Line: 16
// Compiler options: -unsafe

using System;

public class Driver 
{
	public static unsafe byte* Frob 
	{
		get { return (byte *) 0; }
	}
  
	public static void Main () 
	{
		IntPtr q = (IntPtr) Frob;
	}
}