Fixed #5103 (Don't show 'The scope of the variable can be reduced' if there is no explicit block with { })