[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs0459-4.cs
1 // CS0459: Cannot take the address of `this' because it is read-only
2 // Line: 11
3 // Compiler options: -unsafe
4
5 using System;
6
7 class X {
8
9         unsafe void Test ()
10         {
11                 X x = *&this;
12         }
13 }