Skip to content

Instantly share code, notes, and snippets.

@Dervall
Created May 29, 2013 12:12
Show Gist options
  • Save Dervall/5669836 to your computer and use it in GitHub Desktop.
Save Dervall/5669836 to your computer and use it in GitHub Desktop.
Compiler! Why you not work...
class A<T>
{
public virtual T X() { return default(T); }
}
class B : A<int>
{
public override int X()
{
Func<int> x = () => base.X();
return x();
}
}
class Program
{
static void Main(string[] _)
{
new B().X();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment