Added test for static compilation failure in tail recursive method