linux-packaging-mono/mcs/tests/test-anon-150.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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;
});
});
}
}