Am I missing something?  There are four lines in the inner scope.  So presumably it allows lines if they are part of the same if/else block?  Please put brackets just to avoid confusion.