in the block in-between those two positions there is no access to lastType or cardType there is no 'continue' there is no 'break' out of the enclosing 'switch' thus the assignment is inevitable