Interesting bit of bad code which the compiler does not catch and which causes stack overflow because it is re-entrant:
static void Main(string[] args)
{
Test test = "Hello World";
}
publicclass Test
{
publicstatic implicit operator Test(string s)
{
return s; // obviously wrong but compiles andis re-entrant when run
}
}