summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0023-7.cs
blob: 3fa1ef6fe4b26a8d6f450a5bd399e83efd02c4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0023: The `.' operator cannot be applied to operand of type `int*'
// Line: 8
// Compiler options: -unsafe

class C
{
	static unsafe int* Foo ()
	{
		return (int*)0;
	}
	
	public static void Main ()
	{
		unsafe {
			string s = Foo().ToString ();
		}
	}
}