Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
242 B
C#

// Compiler options: -unsafe
unsafe struct S
{
T Test<T> ()
{
return default (T);
}
public void M ()
{
fixed (S* ptr = &this)
ptr->Test<string> ();
}
}
class A
{
public static int Main ()
{
new S ().M ();
return 0;
}
}