Created
May 29, 2013 12:12
-
-
Save Dervall/5669836 to your computer and use it in GitHub Desktop.
Compiler! Why you not work...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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