Test line number of errors in nested blocks.