a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
242 B
C#
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;
|
|
}
|
|
}
|