a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
395 B
C#
31 lines
395 B
C#
class M
|
|
{
|
|
public static int Main ()
|
|
{
|
|
new SomeGenericClass<int>().FailsToCompile ();
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
class SomeGenericClass<SomeType>
|
|
{
|
|
object someValue;
|
|
delegate void SomeHandlerType ();
|
|
|
|
void Invoke (SomeHandlerType h)
|
|
{
|
|
h ();
|
|
}
|
|
|
|
public void FailsToCompile ()
|
|
{
|
|
Invoke (delegate {
|
|
object someObject = 1;
|
|
Invoke (delegate {
|
|
someValue = someObject;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|