Scary Code of The Day

time to read 1 min | 120 words


This code belong to "If I see it in production there has better be some explanations".

public class EmployeeBase : ActiveRecordBase<Employee>

{

} 

public class Employee : EmployeeBase

{

}

How long does it take you to spot the problem.

Update: Just to note, the following is legal C# 2.0 code, and it even perform exactly how you think it would.