IENumerator crash Compiler

Hi!

this part of script crashing my compiler

IEnumerator bug()
{
if (false)
{
yield return null;
}
}

it’s an infinite loop, what else is it going to do?