I felt my way around the C # compiler with its limits of "inherited instances of generated classes".
Anyway, this is my test case:
class Program { static void Main(string[] args) { var x = new InClass(); Console.WriteLine(x.Test(10));
I would think that this InClass declaration would cause a compiler error, as it makes Test ambiguous. It also makes it impossible to call non-generic Test within InClass . Notice that InClass code also has code. If I uncomment this code, I get a compiler error.
Is there any mention of this behavior in the C # spec, or is this an unheard of case with an edge?
Earlz source share