scala compiler tail calls in action